/* ============================================================
   Mohammad AL-Natour Portfolio — Custom Enhanced Styles
   ============================================================ */

/* ---------- FONTS & ROOT ---------- */
:root {
  --accent:       #BD5D38;
  --accent-dark:  #9e4a2a;
  --accent-light: #d4724d;
  --sidebar-bg:   #0f172a;
  --sidebar-sec:  #1e293b;
  --sidebar-text: #cbd5e1;
  --sidebar-link-hover: #f1f5f9;
  --text-main:    #374151;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --white:        #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 30px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.06);
  --radius:       10px;
  --transition:   all 0.25s ease;
}

/* ---------- GLOBAL ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-main);
  background: #f8fafc;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ---------- SIDEBAR / NAV ---------- */
#sideNav {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-sec) 100%) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  border-right: none;
}

#sideNav .navbar-brand .img-profile {
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(189, 93, 56, 0.2), 0 8px 24px rgba(0,0,0,0.4);
  transition: var(--transition);
  filter: brightness(1.0);
}

#sideNav .navbar-brand .img-profile:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 7px rgba(189, 93, 56, 0.3), 0 8px 32px rgba(0,0,0,0.5);
  transform: scale(1.05);
}

#sideNav .navbar-nav .nav-item .nav-link {
  color: var(--sidebar-text);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  margin: 2px 8px;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

#sideNav .navbar-nav .nav-item .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s ease;
}

#sideNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--sidebar-link-hover);
  background: rgba(255,255,255,0.07);
}

#sideNav .navbar-nav .nav-item .nav-link:hover::before {
  height: 60%;
}

#sideNav .navbar-nav .nav-item .nav-link.active {
  color: var(--white);
  background: rgba(189, 93, 56, 0.18);
}

#sideNav .navbar-nav .nav-item .nav-link.active::before {
  height: 60%;
}

/* Download CV link — highlight it */
#sideNav .nav-item:last-of-type .nav-link {
  color: var(--accent-light);
  border: 1px solid rgba(189, 93, 56, 0.35);
  margin-top: 8px;
}

#sideNav .nav-item:last-of-type .nav-link:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}

/* Mobile nav */
#sideNav .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

#sideNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile brand name */
#nameSpan {
  color: var(--white) !important;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- MAIN CONTENT WRAPPER ---------- */
.container-fluid.p-0 {
  background: #f8fafc;
}

/* ---------- SECTION BASE ---------- */
.resume-section {
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.resume-section:hover {
  background: rgba(255,255,255,0.6);
}

/* ---------- SECTION HEADINGS ---------- */
h2.mb-5 {
  font-size: 2.5rem;
  color: #1e293b;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

h2.mb-5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
}

/* ---------- ABOUT SECTION ---------- */
#about {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

#about h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -1px;
}

@media (max-width: 992px) {
  #about h1 { font-size: 2.8rem; }
}

#about .text-primary {
  color: var(--accent) !important;
}

#about .subheading {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 1px;
}

#about .subheading a {
  color: var(--accent);
  text-decoration: none;
}

#about .subheading a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Bio text */
#about p.mb-5 {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-main);
  max-width: 760px;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  background: rgba(189, 93, 56, 0.04);
  border-radius: 0 8px 8px 0;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  padding-right: 1rem;
}

/* Profile image mobile */
#divImg .img-profile {
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem !important;
}

/* Social icons */
.list-social-icons .list-inline-item a {
  color: #475569;
  transition: var(--transition);
}

.list-social-icons .list-inline-item a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.list-social-icons .list-inline-item a span {
  transition: var(--transition);
}

.list-social-icons .list-inline-item a:hover .fa-circle {
  color: var(--accent);
}

/* ---------- EXPERIENCE / TIMELINE ---------- */
#experience .resume-item,
#education .resume-item {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
  transition: border-color 0.3s ease;
}

#experience .resume-item::before,
#education .resume-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(189, 93, 56, 0.15);
  transition: var(--transition);
}

#experience .resume-item:hover::before,
#education .resume-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(189, 93, 56, 0.2);
}

#experience .resume-item:hover,
#education .resume-item:hover {
  border-left-color: var(--accent);
}

.resume-item h3 {
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.resume-item .subheading {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.resume-item p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Current job badge */
.current-job-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 8px;
  text-transform: uppercase;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(189, 93, 56, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(189, 93, 56, 0); }
}

/* Date labels */
.resume-date .text-primary {
  color: var(--accent) !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(189, 93, 56, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---------- EDUCATION CARDS ---------- */
#education .resume-item {
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.2rem 1.2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--border);
}

#education .resume-item:hover {
  box-shadow: var(--shadow-md);
}

/* ---------- SKILLS SECTION ---------- */
#skills {
  background: var(--white);
}

/* Tech icon grid */
.list-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.list-icons .list-inline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.list-icons .list-inline-item i {
  font-size: 2.4rem !important;
  color: #475569;
  transition: var(--transition);
  padding: 10px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-icons .list-inline-item i:hover {
  color: var(--accent) !important;
  background: rgba(189, 93, 56, 0.08);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(189, 93, 56, 0.2);
}

/* Skill progress bars */
.skill-bars {
  margin-top: 2rem;
}

.skill-bar-item {
  margin-bottom: 1.2rem;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.skill-bar-label span.pct {
  color: var(--accent);
  font-size: 0.8rem;
}

.skill-bar-track {
  background: #e5e7eb;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Workflow list */
.fa-ul .fa-li {
  color: var(--accent) !important;
}

.fa-ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 5px 0;
  line-height: 1.6;
}

/* ---------- INTERESTS ---------- */
#interests .fa-ul li {
  font-size: 0.95rem;
  padding: 6px 0;
}

#interests .fa-li {
  color: var(--accent) !important;
}

/* ---------- CERTIFICATIONS ---------- */
#awards .fa-ul {
  column-count: 1;
}

#awards .fa-ul li {
  font-size: 0.92rem;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  transition: color 0.2s ease;
}

#awards .fa-ul li:last-child {
  border-bottom: none;
}

#awards .fa-ul li:hover {
  color: var(--text-main);
}

#awards .fa-li.fa-certificate {
  color: var(--accent) !important;
}

/* ---------- SECTION ENTRANCE ANIMATION ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume-section {
  animation: fadeSlideUp 0.5s ease both;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 992px) {
  #about p.mb-5 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #about h1 {
    margin-left: 0 !important;
  }

  .resume-date {
    margin-top: 8px;
  }

  .resume-date .text-primary {
    display: inline-block;
  }

  #experience .resume-item,
  #education .resume-item {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  #about h1 { font-size: 5rem; }

  #about p.mb-5 {
    font-size: 1rem;
  }
}

/* ---------- ABOUT TITLE ---------- */
.about-title {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- COMPETENCY BADGES ---------- */
.competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.competency-badge {
  display: inline-block;
  background: rgba(189, 93, 56, 0.08);
  border: 1px solid rgba(189, 93, 56, 0.3);
  color: #7c3d1f;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  transition: var(--transition);
}

.competency-badge:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- EXPERIENCE BULLETS ---------- */
.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.91rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 2px;
}

/* Tech stack footer line */
.tech-stack-line {
  font-size: 0.8rem;
  color: #9ca3af;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.tech-stack-line strong {
  color: var(--text-muted);
}

/* ---------- SKILLS GRID (CATEGORIZED) ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.skill-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-category:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(189, 93, 56, 0.3);
}

.skill-category-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.skill-category-title i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: rgba(189, 93, 56, 0.08);
  color: var(--accent);
  border-color: rgba(189, 93, 56, 0.3);
}

/* ---------- LANGUAGES ---------- */
.languages-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.language-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  min-width: 140px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.language-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(189, 93, 56, 0.15);
  transform: translateY(-2px);
}

.language-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.language-level {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- PRINT STYLES ---------- */
@media print {
  #sideNav { display: none !important; }
  body { padding-left: 0 !important; background: white; }
  .resume-section { border-bottom: 1px solid #ccc; }
  .current-job-badge { display: none; }
}
