/* ============================================
   HOOSHNEGAH — AI Vision & Intelligence
   COMPLETE CSS
   ============================================ */

/* Fonts */
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Variables */
:root {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --text-primary: #0a0a1a;
  --text-secondary: #2d3748;
  --text-muted: #718096;
  --surface-glass: rgba(255, 255, 255, 0.6);
  --border-glass: rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.06);
  --cyan: #00b4d8;
  --blue: #0077b6;
  --aqua: #48cae4;
  --tag-bg: rgba(0, 180, 216, 0.08);
  --tag-border: rgba(0, 180, 216, 0.2);
  --tag-hover: rgba(0, 180, 216, 0.15);
  --line-color: rgba(0, 0, 0, 0.06);
}

body.night-theme {
  --bg-primary: #06101d;
  --bg-secondary: #0a1a2e;
  --text-primary: #f4fbff;
  --text-secondary: #b7c9d5;
  --text-muted: #91a7b8;
  --surface-glass: rgba(10, 27, 46, 0.6);
  --border-glass: rgba(121, 215, 255, 0.12);
  --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.4);
  --cyan: #00c8ff;
  --blue: #1584ff;
  --aqua: #5ce1ff;
  --tag-bg: rgba(0, 200, 255, 0.04);
  --tag-border: rgba(0, 200, 255, 0.15);
  --tag-hover: rgba(0, 200, 255, 0.08);
  --line-color: rgba(121, 215, 255, 0.06);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 0.2rem 5rem;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

body.rtl {
  direction: rtl;
}

body.rtl .site-header .row {
  direction: rtl;
}

body.rtl .hero-content {
  text-align: right;
}

body.rtl .tech-tags {
  justify-content: flex-start;
}

body.rtl .hero-actions {
  justify-content: flex-start;
}

body.rtl .visual-caption {
  right: auto;
  left: 0;
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.main-wrapper {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 20px 0;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line-color);
  transition: border-color 0.6s ease;
}

.brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: filter 0.6s ease;
}

.theme-toggle {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  transform: scale(1.05);
  border-color: var(--cyan);
}

.theme-icon {
  font-size: 1.2rem;
  transition: transform 0.4s ease;
}

body.night-theme .theme-icon {
  transform: rotate(180deg);
}

.lang-toggle {
  display: flex;
  gap: 0.2rem;
  background: var(--surface-glass);
  padding: 0.25rem;
  border-radius: 2rem;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  text-transform: uppercase;
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.lang-btn.active {
  color: var(--text-primary);
  background: var(--cyan);
  box-shadow: 0 2px 10px rgba(0, 200, 255, 0.2);
}

body.night-theme .lang-btn.active {
  background: var(--cyan);
  color: #02131d;
}

.contact-link {
  min-height: 42px;
  padding: 0 4px 0 16px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--surface-glass);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.contact-link:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.contact-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: grid;
  place-items: center;
}

.contact-icon-btn svg {
  width: 16px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 40px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(0, 200, 255, 0.09), 0 0 18px rgba(0, 200, 255, 0.4);
  animation: statusPulse 2.2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: linear-gradient(100deg, var(--text-primary) 0%, var(--cyan) 40%, var(--blue) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 560px;
  margin-top: 28px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-copy strong {
  color: var(--text-primary);
  font-weight: 700;
}

.tech-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 14px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tag:hover {
  border-color: var(--cyan);
  background: var(--tag-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primary-button {
  min-height: 54px;
  padding: 4px 6px 4px 22px;
  border: 0;
  border-radius: 999px;
  color: #02131d;
  background: linear-gradient(100deg, var(--aqua), var(--cyan), var(--blue));
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0, 200, 255, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.primary-button:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 200, 255, 0.25);
}

.button-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(2, 17, 29, 0.9);
  display: grid;
  place-items: center;
}

.button-icon svg {
  width: 18px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.launch-note {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.4);
  animation: statusPulse 2.2s ease-in-out infinite;
}

/* Visual Shell */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.visual-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 80px rgba(0, 155, 255, 0.03);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease-out, border-color 0.6s ease, background 0.6s ease;
}

.visual-shell::before,
.visual-shell::after {
  content: '';
  position: absolute;
  inset: 11%;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  transition: border-color 0.6s ease;
}

.visual-shell::after {
  inset: 22%;
}

.orbit {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(70, 204, 255, 0.15);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}

.orbit::before {
  content: '';
  position: absolute;
  top: 14%;
  left: 4%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.orbit-two {
  inset: 15%;
  border-style: dashed;
  animation-duration: 24s;
  animation-direction: reverse;
  opacity: 0.5;
}

.orbit-three {
  inset: 28%;
  border-style: dotted;
  animation-duration: 30s;
  opacity: 0.3;
}

.logo-halo {
  position: absolute;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.12;
  filter: blur(40px);
  animation: haloBreathe 4.5s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: 65%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  animation: logoFloat 6s ease-in-out infinite;
}

.visual-caption {
  position: absolute;
  right: 0;
  bottom: 10%;
  z-index: 3;
  padding: 12px 16px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  min-width: 150px;
}

.visual-caption span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.visual-caption small {
  display: block;
  margin-top: 4px;
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line-color);
  transition: border-color 0.6s ease;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.footer-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--border-glass);
  margin: 0 12px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--cyan);
}

.footer-divider {
  margin: 0 10px;
  color: var(--border-glass);
}

/* ============================================
   SIDE PANEL
   ============================================ */
#sidePanelOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  justify-content: flex-end;
  align-items: flex-start;
}

#sidePanelOverlay.open {
  display: flex;
}

#sidePanel {
  background: var(--bg-secondary);
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 40px 30px 30px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-y: auto;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#closePanel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  background: var(--surface-glass);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

#closePanel:hover {
  border-color: var(--cyan);
  transform: rotate(90deg);
}

#sidePanel h2 {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 30px 0 10px;
  color: var(--text-primary);
}

#sidePanel p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

#panelForm label {
  display: block;
  margin-bottom: 16px;
}

#panelForm label span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

#panelForm input,
#panelForm textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: var(--surface-glass);
  color: var(--text-primary);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

#panelForm input:focus,
#panelForm textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

#panelForm textarea {
  resize: vertical;
  min-height: 100px;
}

#panelSubmit {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #02131d;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
}

#panelSubmit:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px rgba(0, 200, 255, 0.2);
}

#panelMessage {
  margin-top: 12px;
  color: var(--cyan);
  font-size: 0.85rem;
  min-height: 24px;
}

#panelDirect {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

#panelDirect span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 6px;
}

#panelDirect a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#panelDirect a:hover {
  color: var(--cyan);
}

/* ============================================
   CONTACT POPUP
   ============================================ */
#contactPopupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#contactPopupOverlay.open {
  display: flex !important;
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#contactPopup {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 50px 40px 40px;
  width: 80%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
}

#closePopup {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  background: var(--surface-glass);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

#closePopup:hover {
  border-color: var(--cyan);
  transform: rotate(90deg);
}

#contactPopup h2 {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

#contactPopup > p {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

#popupCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================
   POPUP CARD - TEAM MEMBERS (RECTANGULAR IMAGES)
   ============================================ */
.popup-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 16px 48px rgba(0, 200, 255, 0.1);
}

/* RECTANGULAR IMAGE - FULL WIDTH, ORIGINAL SHAPE */
.popup-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.popup-card:hover img {
  transform: scale(1.03);
}

.popup-card .popup-card-content {
  padding: 20px 24px 24px;
  text-align: center;
  width: 100%;
}

.popup-card .popup-icon {
  font-size: 32px;
  margin-bottom: 6px;
  display: block;
}

.popup-card h3 {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.popup-card .popup-role {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 4px 14px;
  background: var(--tag-bg);
  border-radius: 999px;
  border: 1px solid var(--tag-border);
}

/* ============================================
   CONTACT METHODS - BEAUTIFUL BOXES
   ============================================ */
.popup-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.popup-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  text-decoration: none !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.popup-contact-link:hover {
  border-color: var(--cyan);
  background: var(--tag-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 200, 255, 0.08);
}

.popup-contact-icon {
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--tag-bg);
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.popup-contact-link:hover .popup-contact-icon {
  background: var(--tag-hover);
}

.popup-contact-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 50px;
  text-align: left;
  letter-spacing: 0.02em;
}

.popup-contact-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  font-weight: 500;
  transition: color 0.3s ease;
}

.popup-contact-link:hover .popup-contact-detail {
  color: var(--text-primary);
}

/* ============================================
   RTL support for popup
   ============================================ */
body.rtl #contactPopup {
  direction: rtl;
}

body.rtl #closePopup {
  right: auto;
  left: 16px;
}

body.rtl .popup-contact-link {
  flex-direction: row-reverse;
}

body.rtl .popup-contact-label {
  text-align: right;
}

body.rtl .popup-contact-detail {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* ============================================
   CONTACT POPUP RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  #popupCards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #contactPopup {
    padding: 40px 20px 30px;
    width: 95%;
  }
  
  .popup-card {
    padding: 0;
    flex-direction: column;
    gap: 0;
  }
  
  .popup-card img {
    aspect-ratio: 16 / 9;
  }
  
  .popup-card .popup-card-content {
    padding: 16px 16px 20px;
  }
  
  .popup-card .popup-icon {
    font-size: 28px;
  }
  
  .popup-card h3 {
    font-size: 1rem;
  }
  
  .popup-card .popup-role {
    font-size: 0.7rem;
    margin-bottom: 12px;
    padding: 2px 12px;
  }
  
  .popup-contact-methods {
    width: 100%;
  }
  
  .popup-contact-link {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .popup-contact-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .popup-contact-label {
    font-size: 0.7rem;
    min-width: 40px;
  }
  
  .popup-contact-detail {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  #contactPopup {
    padding: 30px 16px 24px;
    width: 98%;
  }
  
  #contactPopup h2 {
    font-size: 22px;
  }
  
  .popup-card .popup-card-content {
    padding: 12px 12px 16px;
  }
  
  .popup-card img {
    aspect-ratio: 16 / 9;
  }
  
  .popup-card .popup-icon {
    font-size: 22px;
  }
  
  .popup-card h3 {
    font-size: 0.9rem;
  }
  
  .popup-card .popup-role {
    font-size: 0.65rem;
    padding: 2px 10px;
    margin-bottom: 10px;
  }
  
  .popup-contact-link {
    padding: 6px 10px;
    font-size: 0.7rem;
    gap: 8px;
  }
  
  .popup-contact-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .popup-contact-label {
    font-size: 0.65rem;
    min-width: 34px;
  }
  
  .popup-contact-detail {
    font-size: 0.65rem;
  }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-ready .reveal:nth-child(2) { transition-delay: 0.08s; }
.is-ready .reveal:nth-child(3) { transition-delay: 0.16s; }
.is-ready .reveal:nth-child(4) { transition-delay: 0.24s; }
.is-ready .reveal:nth-child(5) { transition-delay: 0.32s; }
.is-ready .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes statusPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(12px); }
}

@keyframes haloBreathe {
  0%, 100% { transform: scale(0.9); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.6; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .hero-visual {
    margin-top: 40px;
  }
  
  .visual-shell {
    max-width: 380px;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }
  
  .tech-tags {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }
  
  body.rtl .hero-content {
    text-align: center;
  }
  
  body.rtl .tech-tags {
    justify-content: center;
  }
  
  body.rtl .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  body {
    padding: 0.2rem 1rem;
  }
  
  .brand-logo {
    height: 40px;
  }
  
  .contact-link .contact-text {
    display: none;
  }
  
  .contact-link {
    padding: 0 4px;
    min-height: 38px;
  }
  
  .contact-icon-btn {
    width: 30px;
    height: 30px;
  }
  
  .lang-btn {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
  }
  
  .visual-caption {
    right: 50%;
    bottom: -6%;
    transform: translateX(50%);
    min-width: 120px;
    padding: 10px 14px;
  }
  
  .visual-caption span {
    font-size: 0.6rem;
  }
  
  .visual-caption small {
    font-size: 0.45rem;
  }
  
  .visual-shell {
    max-width: 300px;
  }
  
  .tech-tags {
    gap: 6px;
  }
  
  .tag {
    font-size: 0.6rem;
    padding: 4px 10px;
  }
  
  .primary-button {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .launch-note {
    font-size: 0.75rem;
  }
  
  #sidePanel {
    max-width: 100%;
    padding: 30px 20px 20px;
  }
  
  .site-footer .row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .site-footer .col-md-6 {
    text-align: center !important;
  }
  
  .footer-line {
    margin: 0 8px;
  }
  
  body.rtl .visual-caption {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.2rem 0.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-copy {
    font-size: 0.9rem;
  }
  
  .visual-shell {
    max-width: 250px;
  }
  
  .visual-caption {
    min-width: 100px;
    padding: 8px 12px;
  }
  
  .visual-caption span {
    font-size: 0.5rem;
  }
  
  .visual-caption small {
    font-size: 0.4rem;
  }
  
  .primary-button {
    font-size: 0.8rem;
    padding: 4px 12px 4px 16px;
    min-height: 44px;
  }
  
  .button-icon {
    width: 36px;
    height: 36px;
  }
  
  .button-icon svg {
    width: 14px;
  }
  
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  
  .theme-icon {
    font-size: 1rem;
  }
  
  .contact-icon-btn {
    width: 26px;
    height: 26px;
  }
  
  .contact-icon-btn svg {
    width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  
  .visual-shell {
    transform: none !important;
  }
  
  .hero-logo {
    animation: none !important;
  }
  
  #sidePanel {
    animation: none !important;
  }
  
  #contactPopupOverlay.open {
    animation: none !important;
  }
}