/* =========================================================
   Shared Stylesheet
   Used by:
   - CV Nizar Mtiraoui HTML
   - Page Preparation CKAD Kubernetes
   ========================================================= */

:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --accent: #06b6d4;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */

.hero {
background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 65%, #2563eb 100%);
    color: #fff;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
}

.hero .lead {
  max-width: 850px;
  color: #dbeafe;
  font-size: 1.25rem;
}

.badge-soft,
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  margin: 5px 6px 5px 0;
  font-weight: 600;
}

/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.section {
  padding: 70px 0;
}

.section-title {
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.8px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: var(--secondary);
}

.section-subtitle {
  color: var(--muted);
  max-width: 850px;
  margin-bottom: 34px;
  font-size: 1.08rem;
}

.card-pro,
.side-card,
.experience-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transition: all .25s ease;
}

.card-pro:hover,
.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.10);
}

.icon-box {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* =========================================================
   CV PAGE
   ========================================================= */

.cv-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

.profile-img,
.profile-placeholder {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.profile-img {
  object-fit: cover;
  background: #e2e8f0;
   display: inline-block;
  margin: 50px;
}

.profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #0f172a;
}

.name {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.role {
  font-size: 22px;
  font-weight: 500;
  color: #dbeafe;
  margin-bottom: 16px;
}

.contact-line a,
.contact-line span {
  color: #e0f2fe;
  text-decoration: none;
  margin-right: 18px;
  display: inline-block;
  font-size: 15px;
}

.main-content {
  padding: 42px 48px;
}

.summary-card {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
  padding: 24px;
  border-radius: 22px;
  margin-bottom: 34px;
}

.skill-group {
  margin-bottom: 24px;
}

.skill-title {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-tag,
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: #1e293b;
  padding: 8px 12px;
  margin: 4px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd5e1;
}

.experience-item,
.timeline-step {
  position: relative;
  margin-bottom: 24px;
  padding-left: 18px;
}

.experience-item::before,
.timeline-step::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid #dbeafe;
}

.job-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.company-date {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 10px;
}

.project-title {
  font-weight: 800;
  color: #1e293b;
  margin-top: 16px;
  margin-bottom: 8px;
}

.stack {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-left: 4px solid var(--secondary);
  border-radius: 12px;
  font-size: 14px;
}

.print-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

/* =========================================================
   CKAD PAGE
   ========================================================= */

.domain-row {
  display: grid;
  grid-template-columns: 230px 1fr 70px;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.progress {
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 999px;
}

.diagram {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  overflow-x: auto;
}

.kube-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 850px;
  justify-content: center;
}

.node {
  min-width: 150px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 2px solid #dbeafe;
  text-align: center;
  font-weight: 800;
  color: var(--primary);
}

.node small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 5px;
}

.arrow {
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 900;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.check-list li {
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
}

pre {
  background: #020617;
  color: #dbeafe;
  padding: 20px;
  border-radius: 18px;
  overflow-x: auto;
  font-size: 0.92rem;
}

.footer-cta {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: white;
  border-radius: 28px;
  padding: 44px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .section {
    padding: 45px 0;
  }

  .hero {
    padding: 28px;
  }

  .main-content {
    padding: 28px;
  }

  .name {
    font-size: 32px;
  }

  .role {
    font-size: 18px;
  }

  .profile-placeholder,
  .profile-img {
    width: 135px;
    height: 135px;
    margin-bottom: 20px;
  }

  .domain-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-cta {
    padding: 28px;
  }
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
  body {
    background: #fff;
  }

  .cv-wrapper {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .print-btn {
    display: none;
  }

  .experience-card:hover,
  .card-pro:hover {
    transform: none;
    box-shadow: none;
  }
}
