:root {
  --white: #ffffff;
  --bg-offwhite: #f8f8f6;
  --bg-lightgray: #f2f1ef;
  --border: #e4e3df;
  --text-primary: #1a1a18;
  --text-secondary: #5a5a56;
  --gold: #c9a84c;
  --gold-dark: #b8973f;
  --gold-light: #e8d5a3;
  --gold-pale: #f5efe0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-display: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 12px 28px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(165deg, var(--bg-offwhite) 0%, var(--white) 50%, var(--bg-lightgray) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-pale) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '🚀';
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-offwhite);
  border-color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--bg-lightgray) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px dashed var(--gold-light);
  border-radius: var(--radius-lg);
  opacity: 0.5;
}

.price-banner {
  background: var(--text-primary);
  padding: 28px 0;
}

.price-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.price-label {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

.price-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
}

.price-note {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-note::before {
  content: '•';
  color: var(--gold);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works {
  background: var(--bg-offwhite);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  position: relative;
}

.step::after {
  content: '→';
  position: absolute;
  top: 40px;
  left: -20px;
  font-size: 24px;
  color: var(--gold);
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

.portfolio-section {
  background: var(--bg-lightgray);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  aspect-ratio: 16/10;
  background: var(--bg-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: 24px;
}

.portfolio-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.portfolio-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.portfolio-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--transition-fast);
}

.portfolio-link:hover {
  gap: 12px;
}

.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 600;
  text-align: right;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question::after {
  content: '▼';
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pricing-section {
  background: var(--bg-offwhite);
  text-align: center;
}

.pricing-box {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 48px 64px;
  box-shadow: var(--shadow-xl);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.pricing-amount span {
  font-size: 24px;
}

.pricing-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pricing-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.chip {
  padding: 8px 20px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.payment-methods {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.payment-methods p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.payment-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pill {
  padding: 10px 24px;
  background: var(--bg-offwhite);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.contact-section {
  background: var(--text-primary);
  color: var(--white);
}

.contact-section .section-header h2 {
  color: var(--white);
}

.contact-section .section-header p {
  color: rgba(255,255,255,0.6);
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 15px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--white);
  transition: all var(--transition-fast);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: 17px;
}

.contact-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.footer {
  background: var(--bg-offwhite);
  padding: 24px 0;
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .step::after {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 24px 24px;
    gap: 0;
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  .nav-cta-mobile {
    display: block;
    text-align: center;
    padding: 16px;
    background: var(--gold);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: 16px;
  }

  .nav-cta {
    display: none;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pricing-box {
    padding: 32px 24px;
  }

  .pricing-amount {
    font-size: 36px;
  }
}

.admin-body {
  display: flex;
  direction: ltr;
  min-height: 100vh;
  background: var(--bg-offwhite);
}

.sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-base);
  direction: rtl;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header .logo {
  font-size: 22px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-primary);
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background: var(--bg-offwhite);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.nav-icon {
  font-size: 18px;
}

.nav-item.logout {
  color: #ef4444;
}

.nav-item.logout:hover {
  background: #fef2f2;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  max-width: 1600px;
  direction: rtl;
}

@media (max-width: 1200px) {
  .main-content {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 220px;
  }

  .main-content {
    margin-left: 220px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
  }

  .sidebar.collapsed {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}