*,
*::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-color: #020617;
  color: #e5e7eb;
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: #38bdf8;
  text-decoration: underline;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: #facc15;
  color: #111827;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid #1f2937;
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

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

.brand-photo-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.brand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 1.4rem;
  margin: 0;
}

.brand-role {
  margin: 0.15rem 0 0.15rem;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.brand-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #22c55e, #38bdf8);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav a:focus-visible {
  outline: none;
}

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

.lang-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #4b5563;
  padding: 2px;
  background: #020617;
}

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

.lang-btn.active {
  background: #facc15;
  color: #111827;
}

.lang-btn:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

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

.nav-toggle span + span {
  margin-top: 3px;
}

.section {
  padding: 3rem 0;
}

.hero-section {
  padding-top: 3.25rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.25), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.hero-text h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.hero-text p {
  color: #cbd5f5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(to right, #22c55e, #38bdf8);
  color: #0f172a;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.6);
}

.btn.primary:hover {
  box-shadow: 0 22px 50px rgba(8, 47, 73, 0.8);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: #4b5563;
  color: #e5e7eb;
}

.hero-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1.2rem;
  padding: 1.25rem 1.1rem;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list .label {
  display: inline-block;
  min-width: 5.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.cards-section {
  background: #020617;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #020617;
  border-radius: 1.1rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid #1f2937;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.experience-section {
  background: #020617;
}

.experience-section h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.timeline-note {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.timeline {
  position: relative;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid #1f2937;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.3rem;
}

.timeline-point {
  position: absolute;
  left: -1.1rem;
  top: 0.2rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.timeline-headline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-company {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-sector {
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: right;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.timeline-dates {
  font-weight: 500;
}

.timeline-role {
  opacity: 0.9;
}

.cv-section {
  background: #020617;
}

.cv-section h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.cv-intro {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.cv-lang-section {
  margin-bottom: 2rem;
}

.cv-lang-section h3 {
  margin-bottom: 0.75rem;
}

.cv-card {
  background: #020617;
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  border: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cv-card h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.cv-card p {
  margin: 0 0 0.4rem;
  white-space: pre-wrap;
}

.cv-spacer {
  margin: 0.5rem 0;
}

.cv-block {
  margin-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f2937;
}

.cv-block .cv-company {
  font-size: 1.1rem;
  color: #4da3ff;
}

.cv-block .cv-sector {
  font-size: 0.9rem;
  color: #9ca3af;
}

.cv-block .cv-dates {
  font-size: 0.85rem;
  color: #cbd5f5;
  margin-top: 0.2rem;
}

.cv-block .cv-role {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-top: 0.3rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid #1f2937;
  padding: 1rem 0 1.5rem;
  background: #020617;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Language visibility */
.lang-en-section {
  display: block;
}

.lang-fr-section {
  display: none;
}

body.lang-fr .lang-en-section {
  display: none;
}

body.lang-fr .lang-fr-section {
  display: block;
}

body.lang-ar .lang-en-section {
  display: block;
}

body.lang-ar .lang-fr-section {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.75rem 1.25rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

@media (max-width: 640px) {
  .timeline-headline {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-sector {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.5rem;
  }
  .brand-name {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.cv-separator {
  text-align:center;
  color:#4da3ff;
  margin:20px 0;
  font-weight:300;
  letter-spacing:2px;
}

.lang-ar-section{display:none;} body.lang-ar .lang-ar-section{display:block;} body.lang-ar .lang-en-section, body.lang-ar .lang-fr-section{display:none;}