/* ═══════════════════════════════════════════
   SERAPH PREMIUM STYLESHEET — MODERN REDESIGN
   Supports RTL/LTR, Dark Theme, Glow, and Glassmorphism
   ═══════════════════════════════════════════ */

/* ─── CSS Variables & Design Tokens ─── */
:root {
  --bg: #050508;
  --bg-2: #08080d;
  --surface: rgba(15, 15, 22, 0.65);
  --surface-2: rgba(22, 22, 32, 0.8);
  --surface-3: rgba(28, 28, 40, 0.95);
  
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-dim: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.15);
  --gold-glow-strong: rgba(245, 158, 11, 0.3);
  
  --accent: #f59e0b;
  --white: #ffffff;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --muted-3: #4b5563;
  
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(245, 158, 11, 0.25);
  --border-gold-hover: rgba(245, 158, 11, 0.5);

  --font-fa: 'Vazirmatn', 'Dana', 'Yekan Bakh', sans-serif;
  --font-en: 'Inter', 'SF Pro Display', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme overrides */
html.light {
  --bg: #f9fafb;
  --bg-2: #f3f4f6;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(243, 244, 246, 0.9);
  --surface-3: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --muted-2: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --border-gold: rgba(245, 158, 11, 0.35);
  --gold-glow: rgba(245, 158, 11, 0.08);
}

/* ─── Global Reset & Typography ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

img {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Persistent Background System ─── */
.bg-system {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  transition: all 0.6s var(--ease-out);
}

.bg-glow--top {
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--gold-glow-strong) 0%, transparent 70%);
}

.bg-glow--mid {
  top: 40%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
}

.bg-glow--bot {
  bottom: -10%;
  left: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
}

.bg-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  mix-blend-mode: overlay;
}

/* Canvas/Interactive particles */
.bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.bg-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  animation: floatUp 20s infinite linear;
}

.bg-particles span:nth-child(1)  { left: 10%; top: 80%; animation-delay: 0s; }
.bg-particles span:nth-child(2)  { left: 25%; top: 90%; animation-delay: 2s; }
.bg-particles span:nth-child(3)  { left: 40%; top: 75%; animation-delay: 5s; }
.bg-particles span:nth-child(4)  { left: 55%; top: 85%; animation-delay: 1s; }
.bg-particles span:nth-child(5)  { left: 70%; top: 95%; animation-delay: 7s; }
.bg-particles span:nth-child(6)  { left: 85%; top: 80%; animation-delay: 4s; }
.bg-particles span:nth-child(7)  { left: 15%; top: 60%; animation-delay: 9s; }
.bg-particles span:nth-child(8)  { left: 35%; top: 50%; animation-delay: 3s; }
.bg-particles span:nth-child(9)  { left: 65%; top: 40%; animation-delay: 11s; }
.bg-particles span:nth-child(10) { left: 80%; top: 55%; animation-delay: 6s; }

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* ─── Premium Glassmorphism Common Styles ─── */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.glass-panel--gold {
  border: 1px solid var(--border-gold);
}

.glass-panel--gold:hover {
  border-color: var(--border-gold-hover);
  box-shadow: 0 12px 40px var(--gold-glow);
}

/* ─── Header Navigation ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.header.scrolled {
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  background: rgba(15, 15, 22, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s, background 0.3s;
}

.header.scrolled .header-inner {
  background: rgba(5, 5, 8, 0.85);
  border-color: var(--border-hover);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-word {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

[dir="rtl"] .nav-item::after {
  left: auto;
  right: 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--white);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Lang Switcher */
.lang-selector {
  position: relative;
}

.lang-current {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  width: 130px;
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 10;
  animation: slideFadeIn 0.3s var(--ease-out);
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-selector:hover .lang-dropdown {
  display: flex;
}

.lang-dropdown a {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.lang-dropdown a:hover, .lang-dropdown a.active {
  background: var(--gold-glow);
  color: var(--gold-bright);
}

/* User dropdown button */
.user-portal-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logout-icon-btn {
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.1);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.logout-icon-btn:hover {
  background: rgba(255, 0, 0, 0.15);
  transform: scale(1.05);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.auth-link:hover {
  color: var(--white);
}

/* Hamburger Menu Button */
.mobile-overlay{
    display:none;
    opacity:0;
    pointer-events:none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #050508;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow-strong);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-glow);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
}

.btn-gold:hover {
  background: var(--gold-glow-strong);
  border-color: var(--gold);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ─── Hero Section ─── */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  animation: pulseGlow 3s infinite;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.badge-txt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-bright);
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.line-gold {
  background: linear-gradient(135deg, var(--gold-bright), #f59e0b, var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Interactive Parallax */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-glow-sphere {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow-strong) 0%, transparent 70%);
  filter: blur(40px);
  animation: sphereOrbit 15s infinite alternate ease-in-out;
}

.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.float-card {
  position: absolute;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: floatCardBounce 6s infinite ease-in-out;
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.float-card-txt h4 {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 700;
}

.float-card-txt p {
  font-size: 0.7rem;
  color: var(--muted);
}

.fc--1 { top: 10%; left: 10%; animation-delay: 0s; }
.fc--2 { top: 40%; right: 5%; animation-delay: 2s; }
.fc--3 { bottom: 15%; left: 20%; animation-delay: 4s; }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px var(--gold-glow); }
  50% { box-shadow: 0 0 15px var(--gold-glow-strong); }
}

@keyframes sphereOrbit {
  0% { transform: translate(-10px, -10px) scale(0.9); }
  100% { transform: translate(15px, 15px) scale(1.1); }
}

@keyframes floatCardBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ─── Stats Section ─── */
.stats {
  padding: 4rem 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-en);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--white), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* ─── Section Header Common ─── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Services Section ─── */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 800;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Portfolio/Projects Section ─── */
.projects {
  padding: 6rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  background: #111;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-meta-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

[dir="rtl"] .project-meta-tag {
  right: auto;
  left: 1rem;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 800;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

.project-link-icon {
  color: var(--muted);
  transition: color 0.25s;
}

.project-card:hover .project-link-icon {
  color: var(--gold-bright);
}

/* ─── Why Us Section ─── */
.why {
  padding: 6rem 0;
  background: rgba(10, 10, 15, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
}

.why-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold-glow);
  border-radius: var(--radius);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item-txt h4 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.why-item-txt p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Process Section ─── */
.process {
  padding: 6rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-card {
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.process-step-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
}

.process-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 800;
}

.process-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Testimonials Section ─── */
.testimonials {
  padding: 6rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.test-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.test-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  position: relative;
}

.test-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

/* ─── FAQ Section ─── */
.faq {
  padding: 6rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: right;
  transition: background 0.3s;
}

[dir="ltr"] .faq-question {
  text-align: left;
}

.faq-question:hover {
  background: rgba(255,255,255,0.02);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--gold-bright);
  border-color: var(--gold);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* ─── Contact Form & Layout ─── */
.contact {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.ci-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-glow);
  border-radius: var(--radius);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-txt h4 {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.ci-txt p {
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}

/* Contact form glass panel */
.contact-form {
  padding: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px var(--gold-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ─── Footer Section ─── */
.footer {
  background: #030305;
  border-top: 1px solid var(--border);
  padding: 5rem 0 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.80fr 0.80fr 1.1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-description {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.social-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold-bright);
  padding-right: 4px;
}

[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 4px;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-contact-info svg {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Cookie Consent Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(15, 15, 22, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  animation: slideInUp 0.5s var(--ease-out);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gold-glow);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-content {
  flex-grow: 1;
}

.cookie-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cookie-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── Push Notification Prompt ─── */
.push-prompt {
  position: fixed;
  top: 6rem;
  left: 2rem;
  z-index: 1000;
  max-width: 380px;
  background: rgba(15, 15, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideInLeft 0.5s var(--ease-out);
}

[dir="rtl"] .push-prompt {
  left: auto;
  right: 2rem;
  animation: slideInRight 0.5s var(--ease-out);
}

.push-prompt-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.push-bell-pulse {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-glow);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.push-bell-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: radarPulse 2s infinite linear;
}

.push-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
}

.push-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.push-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.push-actions button {
  flex: 1;
}

/* Animations */
@keyframes radarPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes slideInUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@keyframes slideFadeIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Custom Toast Notifications */
.custom-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: rgba(15, 15, 22, 0.98);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: none;
  animation: slideFadeIn 0.3s var(--ease-out);
}

[dir="rtl"] .custom-toast {
  right: auto;
  left: 2rem;
}

.toast-content-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ─── Authentic Auth Pages Styling ─── */
.auth-page {
  padding: 8rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  max-width: 480px;
  width: 100%;
  padding: 3rem;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header h1 {
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ─── Beautiful User Dashboard Panel ─── */
.user-panel {
  padding: 8rem 0 6rem 0;
}

.user-panel-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.user-sidebar {
  padding: 2rem;
}

.user-profile-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.user-avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  padding: 4px;
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-summary-txt h3 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 800;
}

.user-summary-txt p {
  font-size: 0.75rem;
  color: var(--muted);
}

.user-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-nav-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: all 0.25s;
}

[dir="ltr"] .user-nav-btn {
  text-align: left;
}

.user-nav-btn:hover, .user-nav-btn.active {
  background: var(--gold-glow);
  color: var(--gold-bright);
}

.user-content-area {
  padding: 3rem;
  min-height: 500px;
}

.user-section-title {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ─── Elegant Blog Layout & SEO Optimization ─── */
.blog-layout {
  padding: 8rem 0 6rem 0;
}

.blog-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

/* Left side posts list */
.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-row-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 240px;
}

.blog-row-img-wrapper {
  position: relative;
  overflow: hidden;
}

.blog-row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-row-card:hover .blog-row-img {
  transform: scale(1.05);
}

.blog-row-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  align-items: center;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-meta-item svg {
  color: var(--gold);
}

.blog-row-title {
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 800;
}

.blog-row-title:hover {
  color: var(--gold-bright);
}

.blog-row-summary {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.blog-read-link:hover {
  color: var(--gold-bright);
}

/* Sidebar Widgets */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  padding: 1.75rem;
}

.widget-title {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

[dir="rtl"] .widget-title::after {
  left: auto;
  right: 0;
}

/* Category lists */
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.category-list li a:hover {
  color: var(--gold-bright);
}

/* Tags cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
}

.tag-badge:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ─── Premium SEO Blog Article Page ─── */
.article-header {
  padding: 10rem 0 3rem 0;
  text-align: center;
}

.article-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin: 1.5rem auto;
  max-width: 900px;
}

.article-featured-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  margin-bottom: 3rem;
}

/* Table of Contents Widget */
.toc-widget {
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(245, 158, 11, 0.03);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list li {
  font-size: 0.85rem;
}

.toc-list li.toc-h2 {
  padding-right: 0.5rem;
  font-weight: 600;
}

[dir="ltr"] .toc-list li.toc-h2 {
  padding-right: 0;
  padding-left: 0.5rem;
}

.toc-list li.toc-h3 {
  padding-right: 1.5rem;
  color: var(--muted);
}

[dir="ltr"] .toc-list li.toc-h3 {
  padding-right: 0;
  padding-left: 1.5rem;
}

.toc-list a {
  color: var(--muted);
}

.toc-list a:hover {
  color: var(--gold-bright);
}

/* Article rich prose content customization */
.article-prose {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.9;
}

.article-prose h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin: 2.5rem 0 1rem 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.article-prose h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 2rem 0 1rem 0;
}

.article-prose p {
  margin-bottom: 1.5rem;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

[dir="ltr"] .article-prose ul, [dir="ltr"] .article-prose ol {
  padding-right: 0;
  padding-left: 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose blockquote {
  border-right: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--gold-glow);
  font-style: italic;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
}

[dir="ltr"] .article-prose blockquote {
  border-right: none;
  border-left: 4px solid var(--gold);
}

/* Share Article Widget */
.share-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 3rem;
}

.share-widget h4 {
  font-size: 0.95rem;
  color: var(--white);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

/* ─── Responsive Queries ─── */
@media (max-width: 1024px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-main-grid {
    grid-template-columns: 1fr;
  }
  .user-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .header-nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5,5,8,0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .mobile-overlay.open {
    display: flex;
    opacity: 1;
  }
  .mobile-panel {
    text-align: center;
    width: 100%;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .mobile-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--muted);
  }
  .mobile-item:hover, .mobile-item.active {
    color: var(--white);
  }
  .menu-btn.open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-btn.open .menu-line:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .hero-headline {
    font-size: 2.3rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .blog-row-card {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    flex-direction: row;
    width: 100%;
  }
  .cookie-actions button {
    flex: 1;
  }
}
