* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;

  --border: #cbd5e1;
  --input-bg: #ffffff;

  --success: #15803d;
  --danger: #b91c1c;

  --shadow: rgba(15, 23, 42, 0.08);
}

.dark {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;

  --bg: #090d16;
  --surface: #151e32;
  --text: #f8fafc;
  --text-secondary: #94a3b8;

  --border: #24334f;
  --input-bg: #1c2740;

  --success: #34b262;
  --danger: #f87171;

  --shadow: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  border-radius: 12px;
  background: var(--primary-hover);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
::-webkit-scrollbar-track {
  background: var(--surface);
  border: 2px solid var(--border);
}
body {
  font-family: "cairo", sans-serif;
  /* font-family: "Noto Sans Arabic", sans-serif; */
  background: var(--bg);
  direction: rtl;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}
::placeholder {
  font-family: "cairo", sans-serif;
}
section,
footer {
  padding: 80px 0;
}
.container {
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
}
nav {
  background: var(--surface);
  box-shadow: 0 0 5px 1px var(--shadow);
  position: sticky;
  top: 0;
  width: 100%;
  right: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .container .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav .container .logo h1 {
  color: var(--text);
  line-height: 1.3;
  transition: 0.5s;
}
nav .container .logo h1 span {
  color: var(--primary);
  font-weight: 800;
  font-size: 35px;
  transition: 0.5s;
}
nav .container .logo .icon{
  background: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: 0.5s;
}
nav .container .logo .icon i{
  transition: 0.5s ;
  color: #eee;
}
nav .container .logo:hover .icon{
  transform: scale(1.1);
  background: #eee;
}
nav .container .logo:hover .icon i{
  color: var(--primary-hover);
  transform: scale(1.2);
}
nav .container .logo:hover h1{
  color: var(--primary);
}
nav .container .logo:hover h1 span{
  color: var(--text);
}
nav .container .logo .text p{
  font-size: 12px;
  color: var(--text-secondary);
}
nav .container .links ul {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav .container .links ul li a {
  color: var(--text);
  transition: 0.5s;
}

nav .container .links ul li:hover a {
  color: var(--text-secondary);
}
nav .container .links ul li a.active{
  color: var(--primary);
}
nav .container .links ul li a.active:hover{
  color: var(--primary-hover);
}
nav .container .btns {
  display: flex;
  align-items: center;
  gap: 15px;
}
nav .container .btns button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-style: 14px;
  transition: 0.5s;
  cursor: pointer;
  box-shadow: 0 0 5px 1px var(--shadow);
}
nav .container .btns button:hover {
  color: var(--bg);
  transform: scale(1.1);
  color: var(--text);
  box-shadow: 0 4px 12px 3px var(--shadow);
}
nav .container .btns button:active {
  transform: scale(0.9);
  background: #1e293b;
  color: #fff;
}

nav .container .end{
  display: flex;
  align-items: center;
  gap: 8px;
}
nav .container .end .bars{
  display: none;
}

data {
  position: relative;
}
.data .errors {
  position: sticky;
  top: 95px;
  width: 100%;
  padding: 12px 0;
  border-radius: 13px;
  background: var(--danger);
  color: #ffff;
  transition: 0.5s;
  scale: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  z-index: 6;
  margin-bottom: 25px;
  overflow: hidden;
}
p.errosText {
    padding: 0 50px;
}
 .closeErrBtn{
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  transition: 0.5s;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 0 8px  var(--shadow);
  color: var(--danger);
  text-shadow: 0 0 0 #000;
  background: var(--border);
}
.closeErrBtn:hover{
  box-shadow: 0 -2px 14px 4px var(--shadow);
  transform: translateY(-20px) rotate(30deg);
}
.closeErrBtn:active{
  transform: translateY(-20px) scale(0.9) rotate(-30deg);
}
.data h3 {
  color: var(--text);
}
.data .container {
  border-radius: 14px;
  box-shadow: 0 0 10px 1px var(--shadow);
  padding: 24px;
  background: var(--surface);
}
.data .container .card {
  box-shadow: 0 0 10px 1px var(--shadow);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.data .container .card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.data .container .card-head .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--primary), var(--primary-hover));
}
.data .container .card-head .icon i {
  color: #ffff;
}

.data .container .card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.data .container .card-body .card-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}
.data .container .card-body .card-input label ,
.labelSelect{
  color: var(--text);
}

.data .container .card-body .card-input input,
.inputImg,
.data .container .card-body .card-input textarea {
  font-family: "cairo", sans-serif;
  outline: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  background: var(--bg);
  transition: 0.5s;
  box-shadow: 0 0 0 transparent;
  width: 100%;
}
.inputImg{
  position: relative;
  color: #757575!important;
  height: 51.2px;
}
.data .container .card-body .card-input textarea {
  resize: none;
  height: 200px;
}
.data .container .card-body .card-input input:focus,
.data .container .card-body .card-input textarea:focus {
  border: 1px solid var(--primary);
  box-shadow: 0 0 4px var(--primary-hover);
}
.err {
  border: 1px solid var(--danger) !important;
  box-shadow: 0 0 4px var(--danger) !important;
}
.data .container .about {
  grid-template-columns: 1fr;
}
.data .container .add-btn {
  background: var(--primary);
  padding: 10px 15px;
  color: #fff;
  width: 100%;
  text-align: center;
  outline: none;
  border-radius: 10px;
  border: none;
  box-shadow: 0 3px 10px var(--shadow);
  cursor: pointer;
  margin-top: 10px;
  font-family: "cairo";
  transition: 0.4s;
}
.data .container .add-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px 3px var(--shadow);
  transform: translateY(-2px) scale(1.01);
}
.data .container .add-btn:active {
  transform: translateY(-2px) scale(0.9);
}
.data .container .add-btn i {
  transition: 0.4s;
}
.data .container .add-btn:hover i {
  transform: rotate(180deg);
}
#createCv {
  background: var(--success);
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}
#delCv{
  background: var(--danger);
  display: none;
}
.preveview {
  border: 1px solid var(--primary-hover);
  margin: 10px 0;
  border-radius: 12px;
  padding: 12px;
  background: var(--bg);
  color: var(--text);
  transition: 0.5s;
  display: none;
}
.preveview.animation {
  animation: scale 0.5s ease-in-out;
}
.preveview.animationRemove {
  animation: scaleDown 0.5s ease-in-out;
}
@keyframes scale {
  0% {
    /* transform: scale(1);
    opacity: 1; */
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}
@keyframes scaleDown {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}
.preveview div {
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  padding-bottom: 10px;
  position: relative;
}
.preveview .btnDel {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--danger);
}
.data .container .skillBtn {
  position: absolute;
  width: fit-content;
  top: calc(100% - 52px);
  left: 10px;
  padding: 3px 8px;
}
.prevSkills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.prevSkills .btnDel {
  position: static;
  margin: 0 8px;
}
.prevSkills li {
  list-style: decimal-leading-zero;
  list-style-position: inside;
  margin-bottom: 10px;
}
input#image {
  position: relative;
}

.cv-page {
  width: 210mm;
  min-height: 297mm;
  margin: 30px auto;
  background: #fff;
  padding: 14mm;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
  font-family: "Noto Sans Arabic", sans-serif;
}
.cv-page section{
  padding: 0;
}
.templates .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.templates .container .box {
  position: relative;
  display: block;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 12px;
  background: var(--bg);
  transition: 0.3s ease;
}
.templates .container .box::after{
  position: absolute;
  content: 'اضغط للمعاينة';
  top: 50%;
  left: 50%;
  transform: translate(-50% , -50%);
  pointer-events: none;
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 5px;
}
.templates .container .box:hover {
  transform: translateY(-3px);
  border-color: #ccc;
}

.templates .container .box.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--primary) 15%,
    transparent
  );
}

.templates .container .box .checkBox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.templates .container .box h3 {
  color: var(--text);
  margin: 0;
  font-size: 17px;
}

.templates .container .box input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.templates .container .box img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}
.imageShow{
  background: #0000009c;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  scale: 0;
  transition: 0.5s;
  z-index: 9999;
}
.imageShow img{
  width: 90%;
  height: 90%;
  border-radius: 10px;
  object-fit: contain;
  overflow: hidden;
}
.imageShow button{
  position: absolute;
  top: 30px;
  right: 20px;
}
/* =========================
   Header
========================= */

.temp-1 .cv-header {
  padding-bottom: 22px;
  border-bottom: 2px solid #2563eb;
}

.temp-1 .cv-page .profile {
  display: flex;
  align-items: center;
  gap: 25px;
}
.temp-1 .cv-page section {
  padding: 0;
}
.temp-1 .cv-page .profile-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.temp-1 .cv-page .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.temp-1 .cv-page .profile-info h1 {
  font-size: 30px;
  margin-bottom: 6px;
  color: #111827;
}

.temp-1 .cv-page .profile-info h2 {
  font-size: 17px;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 18px;
}

.temp-1 .cv-page .contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.temp-1 .cv-page .contact span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #4b5563;
}

.temp-1 .cv-page .contact i {
  color: #2563eb;
}

/* =========================
   Content
========================= */

.temp-1 .cv-page .cv-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding-top: 25px;
}

.temp-1 .cv-page .main-content {
  padding-right: 25px;
  border-right: 1px solid #e5e7eb;
}

.temp-1 .cv-page .sidebar {
  padding-left: 0;
}

/* =========================
   Sections
========================= */

.temp-1 .cv-page .cv-section {
  margin-bottom: 25px;
}

.temp-1 .cv-page .cv-section h3 {
  font-size: 15px;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid #dbeafe;
}

.temp-1 .cv-page .cv-section > p {
  font-size: 12px;
  line-height: 1.8;
  color: #4b5563;
  word-wrap: break-word;
  word-break: break-all;
}

/* =========================
   Experience
========================= */

.temp-1 .cv-page .experience-item,
.project-item {
  margin-bottom: 20px;
}

.temp-1 .cv-page .item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 7px;
}

.temp-1 .cv-page .item-head h4 {
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}

.temp-1 .cv-page .company {
  font-size: 11px;
  color: #2563eb;
}

.temp-1 .cv-page .date {
  font-size: 10px;
  color: #6b7280;
  white-space: nowrap;
}

.temp-1 .cv-page .experience-item p,
.temp-1 .cv-page .project-item p {
  font-size: 11px;
  line-height: 1.7;
  color: #4b5563;
  /* width: 412px; */
  word-wrap: break-word;
}
.imageFounded {
  display: none;
}
/* =========================
   Projects
========================= */

.temp-1 .cv-page .project-links {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.temp-1 .cv-page .project-links a {
  font-size: 10px;
  color: #2563eb;
  text-decoration: none;
}

/* =========================
   Education
========================= */

.temp-1 .cv-page .education-item h4 {
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
  margin-bottom: 5px;
}

.temp-1 .cv-page .education-item .date {
  display: block;
  margin-top: 5px;
}

/* =========================
   Skills
========================= */

.temp-1 .cv-page .skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.temp-1 .cv-page .skills li {
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 10px;
}

/* =========================
   Languages
========================= */

.temp-1 .cv-page .language {
  margin-bottom: 14px;
}

.temp-1 .cv-page .language > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 5px;
}

.temp-1 .cv-page .language > div:first-child span:last-child {
  color: #6b7280;
  font-size: 10px;
}

.temp-1 .cv-page .progress {
  width: 100%;
  height: 5px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.temp-1 .cv-page .progress span {
  display: block;
  height: 100%;
  background: #2563eb;
}

/* =========================
   Links
========================= */

.temp-1 .cv-page .links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.temp-1 .cv-page .links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #4b5563;
  text-decoration: none;
  word-break: break-word;
}

.temp-1 .cv-page .links i {
  width: 15px;
  color: #2563eb;
}

/* =========================
   Print
========================= */

@page {
  size: A4;
  margin: 0;
}

@media print {

  html,
  body {
    width: 210mm;
    margin: 0;
    padding: 0;
    background: #fff !important;
  }

  nav,
  footer,
  .data,
  .btnPrint,
  .btn-pribt,
  .templates {
    display: none !important;
  }

  .cv-preview {
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cv-page {
    width: 210mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    /* padding: 14mm !important; */
    box-shadow: none !important;
  }
}

.btn-pribt {
  margin-top: 25px;
}

.btnPrint , .btnEdit{
  width: 100%;
  padding: 13px 20px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  font-family: "Noto Sans Arabic", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(155deg , var(--primary) , #040d2f);
  transition: 0.3s ease;
  background-size: 200% 100%;
}
.btnEdit{
  margin-top: 15px;
  background: linear-gradient(155deg , #d7c608 , #676314);
}
.btnPrint:hover,
.btnEdit:hover {
  background-position: 20%  50%;
  opacity: 0.9;
  transform: translateY(-2px);
}

.btnPrint:active,.btnEdit:active {
  transform: translateY(0);
}
#selectedLang {
  font-family: "Noto Sans Arabic", sans-serif;
  padding: 10px;
  border-radius: 14px;
  transition: 0.5s;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 25px;
  outline: 1px solid var(--border)!important;
  outline-offset: 4px;
  border: 1px solid var(--border)!important;
  box-shadow: 0 0 0 transparent;
  outline: none;
  margin-right: 10px;
  text-transform: capitalize;
}
#selectedLang:focus {
  outline: 1px solid var(--primary-hover)!important;
  box-shadow: 0 0 4px var(--primary-hover);
  border: 1px solid var(--primary-hover)!important;
}
.addSection{
  margin-right: auto;
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.cardSlide{
  overflow: hidden;
  max-height: 0;
  transition: 0.5s;
}
.cardSlide.slide{
  overflow: visible;
  max-height: 2000px;

}



.tem-2 .cv-page {
  width: 210mm;
  min-height: 297mm;
  margin: 30px auto;
  padding: 0;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}


/* =========================
   Header
========================= */

.tem-2 .cv-header {
  position: relative;
  padding: 35px 38px 30px;
  background: #172554;
  color: #fff;
}

.tem-2 .cv-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: #d4a64a;
}

.tem-2 .profile {
  display: flex;
  align-items: center;
  gap: 25px;
}

.tem-2 .profile-image {
  width: 125px;
  height: 125px;
  flex-shrink: 0;
  padding: 5px;
  border: 2px solid #d4a64a;
  border-radius: 50%;
}

.tem-2 .profile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.tem-2 .profile-info {
  flex: 1;
}

.tem-2 .profile-info h1 {
  color: #fff;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 3px;
}

.tem-2 .profile-info h2 {
  color: #f2c66d;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 18px;
}

.tem-2 .contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.tem-2 .contact span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dbe4f4;
  font-size: 11px;
  direction: rtl;
}

.tem-2 .contact i {
  color: #f2c66d;
  font-size: 12px;
}


/* =========================
   Main Layout
========================= */

.tem-2 .cv-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  min-height: 245mm;
}


/* =========================
   Sidebar
========================= */

.tem-2 .sidebar {
  grid-column: 1;
  grid-row: 1;
  background: #f3f5f8;
  padding: 30px 25px;
  border-left: 1px solid #e0e5ec;
}

.tem-2 .main-content {
  grid-column: 2;
  grid-row: 1;
  padding: 30px 35px;
  border-right: none;
}


/* =========================
   Sections
========================= */

.tem-2 .cv-section {
  margin-bottom: 30px;
}

.tem-2 .cv-section h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #172554;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9e0ea;
}

.tem-2 .cv-section h3::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: #d4a64a;
}

.tem-2 .cv-section > p {
  color: #596579;
  font-size: 11px;
  line-height: 2;
  text-align: justify;
}


/* =========================
   Experience
========================= */
.tem-2 .checkLang {
  padding-right: 18px;
  border-right: 2px solid #d4a64a;
  position: relative;
}
.tem-2 .checkLang.ar {
  padding-right: 18px;
  border-right: 2px solid #d4a64a;
  position: relative;
}
.tem-2 .checkLang.ar {
  position: relative;
  margin-bottom: 25px;
}
.tem-2 .checkLang.en{
  padding-left: 18px;
  border-left: 2px solid #d4a64a;
  position: relative;
}

.tem-2 .checkLang::before {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  background: #172554;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d4a64a;
  right: -7.5px;
}
.tem-2 .checkLang.ar::before {
  right: -7.5px;
}
.tem-2 .checkLang.en::before {
  left: -7.5px;
}
.tem-2 .item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 8px;
}

.tem-2 .item-head h4 {
  color: #172554;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  margin-bottom: 3px;
}

.tem-2 .company {
  color: #b1842f;
  font-size: 11px;
  font-weight: 700;
}

.tem-2 .date {
  color: #7a8495;
  font-size: 10px;
  white-space: nowrap;
  padding: 4px 8px;
  background: #f5e8c9;
  border-radius: 4px;
}

.tem-2 .experience-item p,
.tem-2 .project-item p {
  color: #596579;
  font-size: 11px;
  line-height: 1.9;
  text-align: justify;
}


/* =========================
   Projects
========================= */

.tem-2 .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tem-2 .project-links a {
  color: #172554;
  background: #e4eaf5;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  text-decoration: none;
  transition: 0.2s;
}


/* =========================
   Education
========================= */

.tem-2 .education-item {
  padding-bottom: 15px;
  border-bottom: 1px dashed #cbd5e1;
}

.tem-2 .education-item h4 {
  color: #172554;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 5px;
}

.tem-2 .education-item .date {
  display: inline-block;
  margin-top: 8px;
}


/* =========================
   Skills
========================= */

.tem-2 .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.tem-2 .skills li {
  color: #172554;
  background: #fff;
  border: 1px solid #d5deeb;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 600;
}


/* =========================
   Languages
========================= */

.tem-2 .language {
  margin-bottom: 17px;
}

.tem-2 .language > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
  color: #273449;
}

.tem-2 .language > div:first-child span:last-child {
  color: #8a94a4;
  font-size: 9px;
}

.tem-2 .progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: #dce2eb;
  border-radius: 10px;
}

.tem-2 .progress span {
  display: block;
  height: 100%;
  background: #d4a64a;
  border-radius: 10px;
}


/* =========================
   Links
========================= */

.tem-2 .links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tem-2 .links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #596579;
  font-size: 10px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tem-2 .links i {
  width: 17px;
  color: #b1842f;
  font-size: 13px;
}


/* =========================
   Hover
========================= */

.tem-2 .project-links a:hover,
.tem-2 .links a:hover {
  color: #b1842f;
}
/* =========================================================
   TEMPLATE 3 - MODERN ELEGANT DESIGN (.temp-3)
========================================================= */

.temp-3 .cv-page {
  width: 210mm;
  min-height: 297mm;
  margin: 30px auto;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1e293b;
}

/* =========================
   Header Section
========================= */

.temp-3 .cv-header {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 40px 45px 35px;
  color: #ffffff;
  border-bottom: 4px solid #3b82f6;
}

.temp-3 .cv-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 100%;
  background: rgba(59, 130, 246, 0.08);
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
}

.temp-3 .profile {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.temp-3 .profile-image {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  padding: 4px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
}

.temp-3 .profile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.temp-3 .profile-info {
  flex: 1;
}

.temp-3 .profile-info h1 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.temp-3 .profile-info h2 {
  color: #60a5fa;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.temp-3 .contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.temp-3 .contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
}

.temp-3 .contact i {
  color: #60a5fa;
  font-size: 13px;
}

/* =========================
   Main Layout
========================= */

.temp-3 .cv-content {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 0;
  min-height: 240mm;
}

/* =========================
   Main Content & Sidebar
========================= */

.temp-3 .main-content {
  grid-column: 1;
  padding: 35px 38px;
  background: #ffffff;
}

.temp-3 .sidebar {
  grid-column: 2;
  background: #f8fafc;
  padding: 35px 25px;
  border-right: 1px solid #e2e8f0;
}

/* =========================
   Sections Styling
========================= */

.temp-3 .cv-section {
  margin-bottom: 32px;
}

.temp-3 .cv-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.temp-3 .cv-section h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border-radius: 3px;
  transform: rotate(45deg);
}

.temp-3 .cv-section > p {
  color: #475569;
  font-size: 11.5px;
  line-height: 1.9;
  text-align: justify;
}

/* =========================
   Experience & Timeline
========================= */

.temp-3 .checkLang {
  position: relative;
  margin-bottom: 24px;
  border-right: 2px solid #e2e8f0;
  padding-right: 20px;
}

.temp-3 .checkLang.ar {
  padding-right: 20px;
  border-right: 2px solid #e2e8f0;
  border-left: none;
  padding-left: 0;
}

.temp-3 .checkLang.en {
  padding-left: 20px;
  border-left: 2px solid #e2e8f0;
  border-right: none;
  padding-right: 0;
}

.temp-3 .checkLang::before {
  content: "";
  position: absolute;
  top: 0px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  right: -8.5px;
}

.temp-3 .checkLang.ar::before {
  right: -8.5px;
}

.temp-3 .checkLang.en::before {
  left: -8.5px;
}

.temp-3 .item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.temp-3 .item-head h4 {
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.temp-3 .company {
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.temp-3 .date {
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 20px;
}

.temp-3 .experience-item p,
.temp-3 .project-item p {
  color: #475569;
  font-size: 11px;
  line-height: 1.85;
  text-align: justify;
  margin-top: 6px;
}

/* =========================
   Projects
========================= */

.temp-3 .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.temp-3 .project-links a {
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.temp-3 .project-links a:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* =========================
   Education
========================= */

.temp-3 .education-item {
  padding: 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.temp-3 .education-item h4 {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.temp-3 .education-item .date {
  display: inline-block;
  margin-top: 8px;
}

/* =========================
   Skills Section
========================= */

.temp-3 .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.temp-3 .skills li {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* =========================
   Languages Section
========================= */

.temp-3 .language {
  margin-bottom: 16px;
}

.temp-3 .language > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

.temp-3 .language > div:first-child span:last-child {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 500;
}

.temp-3 .progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 10px;
}

.temp-3 .progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 10px;
}

/* =========================
   Social & Web Links
========================= */

.temp-3 .links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.temp-3 .links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s ease;
  overflow-wrap: anywhere;
}

.temp-3 .links a:hover {
  color: #2563eb;
  border-color: #93c5fd;
  background: #eff6ff;
}

.temp-3 .links i {
  width: 18px;
  color: #2563eb;
  font-size: 13px;
  text-align: center;
}

/* =========================================================
   TEMPLATE 4 - ATS FRIENDLY DESIGN (.temp-4)
========================================================= */

.temp-4 .cv-page {
  width: 210mm;
  min-height: 297mm;
  margin: 30px auto;
  padding: 40px 45px;
  background: #ffffff;
  color: #111827;
  font-family: Arial, Helvetica, 'Segoe UI', sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   Header & Profile
========================= */

.temp-4 .cv-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 25px;
  border-bottom: 2px solid #111827;
}

.temp-4 .profile {
  display: block;
}

.temp-4 .profile-image {
  display: none; 
}

.temp-4 .profile-info h1 {
  color: #111827;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.temp-4 .profile-info h2 {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

.temp-4 .contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 15px;
}

.temp-4 .contact span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #374151;
  font-size: 11px;
  direction: rtl;
}

.temp-4 .contact i {
  display: none; 
}

/* =========================
   Main ATS Layout (Single Column)
========================= */

.temp-4 .cv-content {
  display: block;
}

.temp-4 .sidebar,
.temp-4 .main-content {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
}

/* =========================
   Sections
========================= */

.temp-4 .cv-section {
  margin-bottom: 22px;
}

.temp-4 .cv-section h3 {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #111827;
  letter-spacing: 0.5px;
}

.temp-4 .cv-section h3::before {
  display: none;
}

.temp-4 .cv-section > p {
  color: #374151;
  font-size: 11px;
  line-height: 1.6;
  text-align: justify;
}

/* =========================
   Experience & Items
========================= */

.temp-4 .checkLang {
  margin-bottom: 16px;
  padding: 0;
  border: none !important;
}

.temp-4 .checkLang::before {
  display: none;
}

.temp-4 .item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.temp-4 .item-head h4 {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.temp-4 .company {
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-left: 8px;
}

.temp-4 .date {
  color: #4b5563;
  font-size: 10.5px;
  font-weight: 600;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.temp-4 .experience-item p,
.temp-4 .project-item p {
  color: #374151;
  font-size: 11px;
  line-height: 1.6;
  text-align: justify;
  margin-top: 4px;
}

/* =========================
   Projects
========================= */

.temp-4 .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.temp-4 .project-links a {
  color: #111827;
  background: transparent;
  padding: 0;
  font-size: 10.5px;
  text-decoration: underline;
}

/* =========================
   Education
========================= */

.temp-4 .education-item {
  margin-bottom: 12px;
  padding-bottom: 0;
  border: none;
}

.temp-4 .education-item h4 {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.temp-4 .education-item .date {
  display: inline-block;
  margin-top: 2px;
}

/* =========================
   Skills
========================= */

.temp-4 .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  list-style: disc;
  padding-right: 18px;
  margin: 0;
}

.temp-4 .skills li {
  color: #111827;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
}

/* =========================
   Languages
========================= */

.temp-4 .language {
  margin-bottom: 8px;
}

.temp-4 .language > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #111827;
  font-weight: 600;
}

.temp-4 .language > div:first-child span:last-child {
  color: #4b5563;
  font-size: 10px;
  font-weight: normal;
}

.temp-4 .progress {
  display: none; /* الـ ATS يفضل النصوص المفصلة بدلاً من أشرطة التقييم البصرية */
}

/* =========================
   Links
========================= */

.temp-4 .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.temp-4 .links a {
  color: #111827;
  font-size: 10.5px;
  text-decoration: underline;
}

.temp-4 .links i {
  display: none;
}

/* =========================
   Hover (Clean Reset)
========================= */

.temp-4 .project-links a:hover,
.temp-4 .links a:hover {
  color: #000000;
}

.astric{
  color: var(--danger);
  font-weight: 800;
  font-size: 18px;
}

.footer {
  margin-top: 60px;
  padding: 45px 0 0;
  background: var(--surface);
  color: #fff;
  box-shadow: 0 -2px 5px 1px var(--shadow);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 35px;
}

.footer-brand h2 {
  margin: 0 0 12px;
  font-size: 26px;
  color: var(--text);
}

.footer-brand p {
  margin: 0;
  max-width: 400px;
  line-height: 1.8;
  opacity: 0.85;
  color: var(--text);
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}

.footer a {
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: 0.3s;
}

.footer a:hover {
  opacity: 1;
  transform: translateX(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
}

.checkDataStorage{
  background: #0000007d;
  width: 100%;
  min-height: 0vh;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  transform: translate(-50% , -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}
.checkDataStorage.show{
  min-height: 100vh;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}
.checkDataStorage .container{
  text-align: center;
  background: var(--surface);
  padding: 30px ;
  border-radius: 12px;
  box-shadow: 0 0 18px var(--shadow);
}
.checkDataStorage p{
  color: var(--text);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 30px;
}
.checkDataStorage .btn{
  display: flex;
  gap: 8px;
  justify-content: center;
}
.checkDataStorage button{
  border: none;
  padding: 12px 25px;
  font-family: 'cairo';
  border-radius: 9px;
  box-shadow: 0 0 8px var(--shadow);
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  cursor: pointer;
  transition: 0.5s;
}
.checkDataStorage button:nth-child(1){
  background: var(--success);
}
.checkDataStorage button:last-child{
  background: var(--primary);
}
.checkDataStorage button:hover{
  filter: grayscale(0.5);
  transform: translateY(-2px) scale(1.01);
}

.liveprev{
  position: fixed;
  left:-20px;
  top: 180px;
  color: var(--text);
  background: var(--shadow);
  width: 100%;
  transform: rotate(-90deg);
  text-align: center;
  z-index: 3;
}
.goTop{
  position: fixed;
  bottom: 100%;
  right: 25px;
  width: 43px;
  height: 43px;
  z-index: 99;
  background: rgb(140, 8, 8);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--shadow);
  transition: 0.5s;
  cursor: pointer;
  opacity: 0;
  scale: 2;
}
.goTop.show{
  bottom: 25px;
  opacity: 1;
  scale: 1;
  background: var(--primary);
}
.goTop:hover{
  background: var(--primary-hover);
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-5px) scale(1.02);
}
.goTop:active{
  transform: translateY(-5px) scale(0.8);
}
.goTop i{
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  transition: 0.8s;
}
.goTop:hover i{
  color: #eee;
  text-shadow: -1px -1px 2px #000;
}