:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --bg-soft: #0f172a;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.15);
  --accent-bright: #a855f7;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --card-bg: rgba(15, 23, 42, 0.9);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 22px 50px rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: conic-gradient(from 150deg, #818cf8, #22d3ee, #a855f7, #818cf8);
  position: relative;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0, #1f2937, #020617);
}

.logo-text {
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--muted);
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-bright));
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: #e5e7eb;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.75);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
}

.language-switcher {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #f9fafb;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

.hero {
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #a5b4fc;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-visual {
  perspective: 1200px;
}

.mockup-card {
  border-radius: 26px;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.25), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.15rem 1.3rem;
  transform: rotateY(-16deg) rotateX(8deg);
  transform-origin: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.4s ease;
}

.mockup-card:hover {
  transform: rotateY(-11deg) rotateX(5deg) translateY(-4px);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.9);
}

.mockup-browser {
  display: flex;
  gap: 4px;
  padding: 0.25rem 0.35rem;
}

.mockup-browser span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

.mockup-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.mockup-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mockup-title {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.95), rgba(191, 219, 254, 0.4));
  width: 70%;
}

.mockup-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.mockup-line.short {
  width: 60%;
}

.mockup-cta {
  margin-top: 0.3rem;
  height: 26px;
  width: 58%;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
}

.mockup-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: radial-gradient(circle at 10% 0, #f97316, #ec4899, #6366f1);
  position: relative;
  overflow: hidden;
}

.mockup-badge {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: #c7d2fe;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(129, 140, 248, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section {
  padding: 3.5rem 0;
}

.section-accent {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.98));
}

.section-highlight {
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.16), rgba(15, 23, 42, 0.96));
}

.section-muted {
  background: #020617;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 30rem;
  margin: 0.3rem auto 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
}

.service-card .card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.12);
  margin-bottom: 0.7rem;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.offers-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.offer-card {
  position: relative;
  overflow: hidden;
}

.offer-pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.offer-price {
  font-size: 0.9rem;
  color: #a5b4fc;
  margin-top: 0.4rem;
}

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

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-thumb {
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  aspect-ratio: 16/10;
  margin-bottom: 0.9rem;
}

.portfolio-thumb-1 {
  background-image: linear-gradient(135deg, #f97316, #fb7185);
}

.portfolio-thumb-2 {
  background-image: linear-gradient(135deg, #22c55e, #22d3ee);
}

.portfolio-thumb-3 {
  background-image: linear-gradient(135deg, #6366f1, #a855f7);
}

.portfolio-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.portfolio-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.request-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.request-form {
  padding: 1.4rem 1.4rem 1.6rem;
}

.field-group {
  margin-bottom: 0.9rem;
}

.field-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.24rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
  background: rgba(15, 23, 42, 0.98);
}

textarea {
  resize: vertical;
}

.form-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 15rem;
}

.form-status {
  margin-top: 0.65rem;
  font-size: 0.8rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f97373;
}

.request-aside h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.checklist li::before {
  content: '✓';
  display: inline-block;
  margin-inline-end: 0.4rem;
  color: #4ade80;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-card a {
  font-size: 0.9rem;
  color: #bfdbfe;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.footer-link {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.8rem;
}

.footer-link:hover {
  color: #e5e7eb;
}

.admin-body {
  background: radial-gradient(circle at top, #020617 0, #020617 55%);
}

.admin-header {
  position: sticky;
  top: 0;
}

.admin-main {
  padding-bottom: 2.5rem;
}

.admin-card {
  padding: 1.3rem 1.3rem 1.4rem;
}

.admin-form h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-end;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.checkbox-group input[type='checkbox'] {
  width: auto;
  accent-color: #6366f1;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.6rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.data-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
}

.data-table tr:hover td {
  background: rgba(15, 23, 42, 0.8);
}

.table-empty {
  text-align: center;
  color: var(--muted);
}

.admin-offers-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.admin-offers-list {
  display: grid;
  gap: 0.7rem;
}

.admin-offer-item {
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-offer-title {
  font-size: 0.9rem;
}

.admin-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-offer-actions {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.4rem;
}

.admin-offer-actions .btn {
  padding-inline: 0.7rem;
  font-size: 0.78rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .request-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-offers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.7rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.8rem 1.5rem 1rem;
    flex-direction: column;
    gap: 0.55rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 1.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .card {
    padding-inline: 1.05rem;
  }
}

html[dir='rtl'] body {
  direction: rtl;
}

html[dir='rtl'] .hero-inner,
html[dir='rtl'] .request-grid,
html[dir='rtl'] .admin-offers-grid {
  direction: rtl;
}

html[dir='rtl'] .main-nav a::after {
  left: auto;
  right: 0;
}

html[dir='rtl'] .checklist li::before {
  margin-inline-end: 0;
  margin-inline-start: 0.4rem;
}

