/* ===== CUSTOM FONTS ===== */

/* Karbon Font - English */
@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon Font/Karbon-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon Font/Karbon-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon Font/Karbon-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon Font/Karbon-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karbon';
  src: url('../fonts/Karbon Font/Karbon-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Arabic TheSans Font - Arabic */
@font-face {
  font-family: 'TheSansArabic';
  src: url('../fonts/Arabic-TheSans Font/Font/TheSans-Plain.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheSansArabic';
  src: url('../fonts/Arabic-TheSans Font/Font/TheSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheSansArabic';
  src: url('../fonts/Arabic-TheSans Font/Font/TheSansArabic-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Karbon', 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
  background-color: #e8ecef;
  color: #333333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== CARD CONTAINER ===== */
.card-wrapper {
  width: 38%;
  max-width: 480px;
  min-width: 320px;
  background: #f1f5f8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  margin: 0 auto;
}

/* ===== BANNER SECTION ===== */
.card-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 60px;
  height: auto;
  z-index: 2;
}

.banner-logo img {
  width: 100%;
  height: auto;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -115px;
  position: relative;
  z-index: 3;
  padding: 0 20px;
  margin-bottom: 15px;
}

/* ===== NAME CARD (white overlay) ===== */
.name-card {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  margin-top: -60px;
  padding-top: 70px;
  padding-bottom: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

.profile-photo-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg,
      rgba(225, 245, 217, 0.95) 0%,
      rgba(198, 235, 183, 0.82) 26%,
      rgba(122, 205, 89, 0.92) 68%,
      rgba(59, 181, 52, 1) 100%);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.profile-photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

/* ===== NAME SECTION ===== */
.name-section {
  text-align: center;
  margin-top: 16px;
  padding: 0 20px;
}

.name-arabic {
  font-family: 'TheSansArabic', 'Segoe UI', Tahoma, sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: #222222;
  line-height: 1.4;
  direction: rtl;
  margin-bottom: 2px;
}

.name-english {
  font-family: 'Karbon', 'Segoe UI', Tahoma, sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* ===== TITLE BADGE ===== */
.title-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e8f8ea 0%, #e8f8ea 50%, #e8f8ea 100%);
  color: #3aaa35;
  padding: 8px 30px;
  border-radius: 40px;
  text-align: center;
  margin-bottom: 12px;
}

.title-badge .title-ar {
  font-family: 'TheSansArabic', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 500;
  direction: rtl;
  line-height: 1.5;
}

.title-badge .title-en {
  font-family: 'Karbon', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* ===== COMPANY ===== */
.company-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #555555;
  font-size: 0.9rem;
  font-weight: 500;
}

.company-row .company-icon {
  width: 15px;
  height: 15px;
  fill: #777777;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
  display: flex;
  gap: 12px;
  padding: 0 24px;
  margin-bottom: 24px;
  width: 100%;
}

.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-action:active {
  transform: translateY(0);
  opacity: 0.9;
}

.btn-save {
  background: linear-gradient(135deg, #3cae49, #32952d);
}

.btn-share {
  background: linear-gradient(135deg, #0153a0, #163d65);
}

.btn-action .btn-icon {
  width: 35px;
  height: 35px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* ===== CONTACT INFO ===== */
.contact-section {
  padding: 0 24px 20px;
}

.contact-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #999999;
  margin-bottom: 12px;
  padding-left: 4px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.contact-card:hover {
  background: #f0f2f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-card:last-child {
  margin-bottom: 0;
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  /* border: 2px solid #3aaa35; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.phone {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 1px solid #3aaa35;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.contact-icon-circle svg {
  width: 20px;
  height: 20px;
  fill: #3aaa35;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details .detail-label {
  font-size: 0.72rem;
  color: #3aaa35;
  font-weight: 500;
  line-height: 1.3;
}

.contact-details .detail-value {
  font-size: 0.95rem;
  color: #222222;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

/* ===== SEND CONTACT FORM ===== */
.send-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3aaa35;
  padding-left: 4px;
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e3e8;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: 'Karbon', 'Segoe UI', Tahoma, sans-serif;
  color: #222222;
  background: #f7f8fa;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
  color: #aaaaaa;
  font-weight: 400;
}

.form-input:focus {
  border-color: #3aaa35;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(58, 170, 53, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.btn-send-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3aaa35, #32952d);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Karbon', 'Segoe UI', Tahoma, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin-top: 4px;
}

.btn-send-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 170, 53, 0.3);
}

.btn-send-form:active {
  transform: translateY(0);
  opacity: 0.9;
}

.btn-send-form .btn-icon {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 16px 12px 20px;
  border-top: 1px solid #eeeeee;
  background: #fafbfc;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.nav-item:hover {
  transform: translateY(-2px);
}

.nav-item:active {
  opacity: 0.7;
}

.nav-icon-circle {
  width: 42px;
  height: 42px;
  /* border-radius: 50%; */
  /* border: 2px solid #3aaa35; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: background 0.2s ease;
}

.nav-item:hover .nav-icon-circle,
.nav-item.active .nav-icon-circle {
  background: #f0faf0;
}

.nav-icon-circle svg {
  width: 18px;
  height: 18px;
  fill: #3aaa35;
}

.nav-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #3aaa35;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}



/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #333333;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

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

/* Large desktops (1400px+) */
@media (min-width: 1400px) {
  .card-wrapper {
    width: 30%;
  }
}

/* Standard desktops (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
  .card-wrapper {
    width: 38%;
  }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .card-wrapper {
    width: 50%;
  }
}

/* Large phones (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .card-wrapper {
    width: 75%;
  }
}

/* Mobile phones (up to 480px) */
@media (max-width: 480px) {
  .card-wrapper {
    width: 94%;
    min-width: 0;
    border-radius: 16px;
  }

  body {
    padding: 12px 0;
  }

  .card-banner {
    height: 150px;
  }

  .banner-logo {
    width: 50px;
    top: 8px;
    right: 8px;
  }

  .profile-photo-ring {
    width: 122px;
    height: 122px;
    padding: 3px;
  }

  .profile-section {
    margin-top: -105px;
    margin-bottom: 15px;
  }

  .name-arabic {
    font-size: 22px;
  }

  .name-english {
    font-size: 22px;
  }

  .title-badge {
    padding: 8px 20px;
  }

  .title-badge .title-ar {
    font-size: 15px;
  }

  .title-badge .title-en {
    font-size: 15px;
  }

  .action-buttons {
    padding: 0 16px;
    gap: 10px;
    margin-bottom: 20px;
  }

  .btn-action {
    padding: 11px 12px;
    font-size: 17px;
    border-radius: 12px;
    gap: 8px;
  }

  .btn-action .btn-icon {
    width: 32px;
    height: 32px;
  }

  .contact-section {
    padding: 0 16px 16px;
  }

  .contact-card {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .contact-icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .contact-icon-circle svg {
    width: 18px;
    height: 18px;
  }

  .contact-details .detail-value {
    font-size: 0.88rem;
  }

  .bottom-nav {
    padding: 14px 8px 16px;
  }

  .nav-icon-circle {
    width: 38px;
    height: 38px;
  }

  .nav-icon-circle svg {
    width: 16px;
    height: 16px;
  }

  .nav-label {
    font-size: 0.56rem;
  }
}

/* Very small phones (up to 360px) */
@media (max-width: 360px) {
  .card-wrapper {
    width: 96%;
  }

  .name-arabic {
    font-size: 1.45rem;
  }

  .name-english {
    font-size: 1.1rem;
  }

  .btn-action {
    font-size: 0.8rem;
    padding: 10px 8px;
  }

  .contact-details .detail-value {
    font-size: 0.82rem;
  }
}