/* ============================================
   OMAR PORTFOLIO - SHARED PAGE STYLES
   ============================================ */

/* ---- PAGE HERO ---- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
}

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

.page-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}

[lang="ar"] .page-hero__title { font-family: var(--font-arabic); }

.page-hero__desc {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

[lang="ar"] .page-hero__desc { font-family: var(--font-arabic); }

/* ---- STORY BLOCK ---- */
.story-block {
  margin-bottom: var(--space-10);
}

.story-block p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-4);
}

[lang="ar"] .story-block p { font-family: var(--font-arabic); }

.story-block__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
}

/* ---- BELIEFS ---- */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.belief-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.belief-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.belief-card__icon { font-size: 1.75rem; margin-bottom: var(--space-3); }
.belief-card__title { font-weight: 700; font-size: var(--text-base); margin-bottom: var(--space-2); }
.belief-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

[lang="ar"] .belief-card__desc { font-family: var(--font-arabic); }

/* ---- EXPERIENCE TIMELINE ---- */
.exp-timeline { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-10); }

.exp-item {
  position: relative;
  padding-left: var(--space-8);
}

[lang="ar"] .exp-item { padding-left: 0; padding-right: var(--space-8); }

.exp-item__dot {
  position: absolute;
  left: 0; top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

[lang="ar"] .exp-item__dot { left: auto; right: 0; }

.exp-item__line {
  position: absolute;
  left: 6px; top: 38px;
  width: 2px;
  height: calc(100% + var(--space-6));
  background: var(--border-light);
}

[lang="ar"] .exp-item__line { left: auto; right: 6px; }

.exp-item:last-child .exp-item__line { display: none; }

.exp-item__card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.exp-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.exp-item__role {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exp-item__company {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 600;
}

.exp-item__brands {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.exp-brand-tag {
  padding: 3px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.exp-item__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.exp-item__points li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  padding-right: var(--space-5);
  position: relative;
}

[lang="ar"] .exp-item__points li {
  font-family: var(--font-arabic);
  padding-right: 0;
  padding-right: var(--space-5);
}

.exp-item__points li::before {
  content: '';
  position: absolute;
  right: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

[lang="ar"] .exp-item__points li::before { right: auto; right: 0; }

/* ---- EDUCATION ---- */
.edu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.edu-card__icon { font-size: 2.5rem; }
.edu-card__degree { font-weight: 700; font-size: var(--text-xl); margin-bottom: 4px; }
.edu-card__university { font-size: var(--text-base); color: var(--text-secondary); font-weight: 600; margin-bottom: 4px; }
.edu-card__meta { font-size: var(--text-sm); color: var(--text-muted); }

/* ---- SKILLS PAGE ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.skill-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.skill-group:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.skill-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.skill-group__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

.skill-group__title {
  font-weight: 700;
  font-size: var(--text-base);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  padding: 5px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover, .skill-tag--highlight {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
  color: var(--accent-blue);
}

/* ---- SERVICES PAGE ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card--featured {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-accent);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--border-light);
  position: absolute;
  top: var(--space-4); right: var(--space-6);
  line-height: 1;
}

[lang="ar"] .service-card__num { right: auto; left: var(--space-6); }

.service-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

[lang="ar"] .service-card__title { font-family: var(--font-arabic); }

.service-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

[lang="ar"] .service-card__desc { font-family: var(--font-arabic); }

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-card__list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-right: var(--space-5);
  position: relative;
}

[lang="ar"] .service-card__list li { font-family: var(--font-arabic); }

.service-card__list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent-emerald);
  font-weight: 700;
}

[lang="ar"] .service-card__list li::before { right: 0; }

/* ---- WHY ME PAGE ---- */
.compare-table {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table__head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-light);
}

.compare-table__head-cell {
  padding: var(--space-5) var(--space-6);
  font-weight: 700;
  font-size: var(--text-sm);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-table__head-cell:first-child { text-align: right; }
[lang="ar"] .compare-table__head-cell:first-child { text-align: left; }

.compare-table__head-cell--accent {
  background: var(--gradient-primary);
  color: white;
}

.compare-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.compare-table__row:last-child { border-bottom: none; }
.compare-table__row:hover { background: var(--bg-elevated); }

.compare-table__cell {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.compare-table__cell:first-child {
  justify-content: flex-end;
  font-weight: 600;
  color: var(--text-primary);
}

[lang="ar"] .compare-table__cell:first-child {
  font-family: var(--font-arabic);
  justify-content: flex-start;
}

.compare-icon--yes { color: #10B981; font-size: 1.1rem; }
.compare-icon--no  { color: #EF4444; font-size: 1.1rem; }
.compare-icon--partial { color: #F59E0B; font-size: 1.1rem; }

/* ---- FAQ PAGE ---- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.open { border-color: var(--border-accent); box-shadow: var(--shadow-sm); }

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: right;
  gap: var(--space-4);
  border: none;
  background: none;
  transition: color var(--transition-fast);
}

[lang="ar"] .faq-item__question { font-family: var(--font-arabic); }
.faq-item.open .faq-item__question { color: var(--accent-blue); }

.faq-item__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.open .faq-item__icon {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
  padding: 0 var(--space-6);
}

.faq-item.open .faq-item__answer {
  max-height: 500px;
  padding: 0 var(--space-6) var(--space-5);
}

.faq-item__answer p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
}

[lang="ar"] .faq-item__answer p { font-family: var(--font-arabic); }

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-methods { display: flex; flex-direction: column; gap: var(--space-4); }

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-base);
}

.contact-method:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}

[lang="ar"] .contact-method:hover { transform: translateX(4px); }

.contact-method__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.contact-method__icon--wa { background: rgba(37,211,102,0.1); }
.contact-method__icon--phone { background: rgba(37,99,235,0.1); }
.contact-method__icon--email { background: rgba(124,58,237,0.1); }

.contact-method__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

[lang="ar"] .contact-method__label { font-family: var(--font-arabic); text-transform: none; letter-spacing: 0; }

.contact-method__value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  direction: ltr;
}

/* Contact Form */
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

[lang="ar"] .form-label { font-family: var(--font-arabic); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-base);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  appearance: none;
}

[lang="ar"] .form-input,
[lang="ar"] .form-select,
[lang="ar"] .form-textarea { font-family: var(--font-arabic); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: var(--bg-surface);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  margin-top: var(--space-2);
}

.form-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: none;
  margin-top: var(--space-4);
}

[lang="ar"] .form-alert { font-family: var(--font-arabic); }

.form-alert--success { background: rgba(16,185,129,0.1); color: #065f46; border: 1px solid rgba(16,185,129,0.2); }
.form-alert--error   { background: rgba(239,68,68,0.1);  color: #991b1b; border: 1px solid rgba(239,68,68,0.2);  }

/* Smart form hidden fields */
.form-conditional { display: none; }
.form-conditional.show { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .beliefs-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .compare-table__head-cell,
  .compare-table__cell { padding: var(--space-3) var(--space-3); font-size: var(--text-xs); }
}
