/* Site-specific additions on top of the template theme (accent: #C49B66) */

/* Header award badge */
.header .header-badge {
  display: inline-block;
  margin-top: 25px;
  padding: 8px 18px;
  border: 1px solid #C49B66;
  border-radius: 30px;
  color: #eee;
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.35);
}
.header .header-badge i {
  color: #C49B66;
  margin-right: 6px;
}

/* About copy spacing */
.hero1 .content p + p {
  margin-top: 15px;
}
.hero1 .content .social-icon {
  margin-top: 25px;
}

/* Core strengths tags (replaces self-rated % bars) */
.resume .skills .skill-group {
  margin-bottom: 18px;
}
.resume .skills .skill-group h6 {
  color: #C49B66;
  font-size: 15px;
  margin-bottom: 10px;
}
.resume .skills .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.resume .skills .tags li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  font-size: 13px;
  color: #ddd;
  background: rgba(0, 0, 0, 0.25);
}

/* Counters: keep long labels readable */
.numbers .item p {
  line-height: 1.4;
}

/* Experience timeline */
.experience .timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 2px solid #222;
}
.experience .tl-item {
  position: relative;
  margin-bottom: 45px;
  padding: 25px 30px;
  background: #181818;
  border-radius: 4px;
}
.experience .tl-item:before {
  content: '';
  position: absolute;
  left: -42px;
  top: 30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #131414;
  border: 3px solid #C49B66;
}
.experience .tl-item:first-child:before {
  background: #C49B66;
}
.experience .tl-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  margin-bottom: 10px;
}
.experience .tl-head h5 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.experience .tl-date {
  color: #C49B66;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.experience .tl-item h6 {
  color: #ddd;
  font-size: 16px;
  margin: 14px 0 6px;
}
.experience .tl-item ul {
  margin: 0;
  padding: 0;
}
.experience .tl-item li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  font-size: 15px;
  color: #a3a3a3;
  line-height: 1.6;
}
.experience .tl-item li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C49B66;
}
.experience .tl-item li strong {
  color: #eee;
}
.experience .tl-compact {
  padding-top: 20px;
  padding-bottom: 20px;
}
.experience .community {
  max-width: 900px;
  margin: 10px auto 0;
}
.experience .community p span {
  color: #C49B66;
}

@media screen and (max-width: 767px) {
  .experience .timeline {
    padding-left: 20px;
  }
  .experience .tl-item {
    padding: 20px 18px;
  }
  .experience .tl-item:before {
    left: -30px;
  }
}

/* Contact call-to-action (replaces non-functional PHP form) */
.contact .contact-cta {
  max-width: 720px;
  margin: 0 auto 60px;
}
.contact .contact-cta p {
  color: #ccc;
  font-size: 17px;
  margin-bottom: 30px;
}
.contact .contact-cta .buton {
  margin: 8px;
}
.contact .info a {
  color: inherit;
}
.contact .info a:hover {
  color: #C49B66;
}

/* Fixes for theme rules that clash with the new content */
.resume .skills .tags li,
.resume .skills .tags li:last-child {
  margin-bottom: 0;
}
.hero1 .content p span {
  display: inline;
  white-space: normal;
  color: #eee;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .header .caption h2 {
    font-size: 22px;
    line-height: 1.4;
  }
  .header .header-badge {
    max-width: calc(100% - 32px);
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.5;
  }
  .header .caption h1.cd-headline {
    font-size: 26px;
  }
  .header .cd-headline .blc {
    display: block;
  }
  .contact .info .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Hidden rotating headline words are absolutely positioned; keep them from widening the page */
.header {
  overflow: hidden;
}
.services {
  overflow: hidden;
}

/* =====================================================
   Experience scrollytelling (js/scrolly.js)
   ===================================================== */
.experience .scrolly {
  max-width: 1100px;
  margin: 0 auto;
}
.experience .scrolly .timeline {
  max-width: none;
  margin: 0;
}

/* Panel is only shown once JS has wired it up */
.experience .scrolly-panel {
  display: none;
}
.experience .scrolly-on .scrolly-panel {
  display: block;
}

@media screen and (min-width: 992px) {
  .experience .scrolly-on {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
  }
  .experience .scrolly-panel {
    position: sticky;
    top: 110px;
  }
}

.experience .scrolly-card {
  padding: 28px 26px;
  background: #181818;
  border-left: 3px solid #C49B66;
  border-radius: 4px;
}
.experience .scrolly-card > * {
  transition: opacity .18s ease, transform .18s ease;
}
.experience .scrolly-card.is-swapping .sp-chapter,
.experience .scrolly-card.is-swapping .sp-years,
.experience .scrolly-card.is-swapping .sp-company,
.experience .scrolly-card.is-swapping .sp-title,
.experience .scrolly-card.is-swapping .sp-stat {
  opacity: 0;
  transform: translateY(8px);
}
.experience .sp-chapter {
  display: block;
  color: #C49B66;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.experience .sp-years {
  margin: 10px 0 6px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.experience .sp-company {
  margin: 0 0 8px;
  font-size: 20px;
  color: #eee;
}
.experience .sp-title {
  margin: 0 0 14px;
  font-size: 15px;
  color: #a3a3a3;
}
.experience .sp-stat {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(196, 155, 102, .5);
  border-radius: 20px;
  font-size: 13px;
  color: #eee;
}
.experience .sp-stat i {
  color: #C49B66;
  margin-right: 4px;
}
.experience .sp-progress {
  position: relative;
  height: 3px;
  margin: 22px 0 18px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
}
.experience .sp-progress-fill {
  position: absolute;
  inset: 0;
  background: #C49B66;
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
.experience .sp-rail {
  margin: 0;
  padding: 0;
}
.experience .sp-rail li {
  margin: 0;
}
.experience .sp-rail button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 0;
  background: none;
  border: 0;
  color: #777;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.experience .sp-rail button:hover,
.experience .sp-rail button:focus-visible {
  color: #eee;
}
.experience .sp-rail .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #555;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.experience .sp-rail li.is-past .dot {
  border-color: #C49B66;
}
.experience .sp-rail li.is-active button {
  color: #fff;
  font-weight: 600;
}
.experience .sp-rail li.is-active .dot {
  background: #C49B66;
  border-color: #C49B66;
  transform: scale(1.3);
}

/* Role cards: fade/slide in, then dim when not the focus */
.experience .scrolly-on .tl-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .4s ease;
}
.experience .scrolly-on .tl-item.is-in {
  opacity: .5;
  transform: none;
}
.experience .scrolly-on .tl-item.is-in.is-active {
  opacity: 1;
  box-shadow: inset 3px 0 0 #C49B66;
}
.experience .scrolly-on .tl-item:before {
  transition: background .3s ease, box-shadow .3s ease;
}
.experience .scrolly-on .tl-item.is-active:before {
  background: #C49B66;
  box-shadow: 0 0 0 6px rgba(196, 155, 102, .2);
}
.experience .scrolly-on .tl-item:first-child:not(.is-active):before {
  background: #131414;
}

/* Reduced motion: no animation, everything readable */
.experience .scrolly-reduced .tl-item,
.experience .scrolly-reduced .tl-item.is-in {
  opacity: 1;
  transform: none;
  transition: none;
}
.experience .scrolly-reduced .scrolly-card > * {
  transition: none;
}

/* Tablet & phone: panel becomes a compact sticky bar under the navbar */
@media screen and (max-width: 991px) {
  .experience .scrolly-panel {
    position: sticky;
    top: var(--nav-h, 70px);
    z-index: 5;
    margin: 0 -15px 30px;
  }
  .experience .scrolly-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 14px;
    padding: 12px 18px 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(24, 24, 24, .96);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  }
  .experience .sp-chapter,
  .experience .sp-title,
  .experience .sp-stat,
  .experience .sp-rail {
    display: none;
  }
  .experience .sp-years {
    margin: 0;
    font-size: 18px;
  }
  .experience .sp-company {
    margin: 0;
    font-size: 15px;
    color: #C49B66;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .experience .sp-progress {
    grid-column: 1 / -1;
    margin: 10px -18px 0;
    border-radius: 0;
  }
}

/* "Login" nav item styled as a small button (links to the test login page) */
.navbar .navbar-nav .nav-login {
  border: 1px solid #C49B66;
  border-radius: 20px;
  padding: 5px 16px;
  margin: 10px 5px 10px 12px;
  color: #C49B66 !important;
  transition: background .3s ease, color .3s ease;
}
.navbar .navbar-nav .nav-login:hover,
.navbar .navbar-nav .nav-login:focus {
  background: #C49B66;
  color: #1a1205 !important;
}
@media screen and (max-width: 991px) {
  .navbar .navbar-nav .nav-login {
    display: inline-block;
    margin: 8px 0;
  }
}

/* Keep the About heading on a single line on desktop; wraps normally on phones */
@media screen and (min-width: 992px) {
  .hero1 .content .title.title-left {
    white-space: nowrap;
    font-size: clamp(18px, 1.95vw, 32px);
  }
}

/* =====================================================
   Recommendations carousel
   ===================================================== */
.recommendations {
  background-attachment: fixed;
}
.recommendations .section-head .icon {
  font-size: 40px;
  color: #C49B66;
  margin-bottom: 15px;
}
.recommendations .ritem {
  text-align: center;
  padding: 10px 20px 0;
}
.recommendations .ritem .quote {
  font-size: 18px;
  line-height: 1.7;
  color: #e6e6e6;
  font-style: italic;
  max-width: 820px;
  margin: 0 auto 26px;
}
.recommendations .rec-by h5 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 4px;
}
.recommendations .rec-by h6 {
  font-size: 14px;
  font-weight: 400;
  color: #C49B66;
  margin: 0 0 4px;
}
.recommendations .rec-rel {
  font-size: 13px;
  color: #9aa0a6;
}

/* Carousel nav + dots */
.recommendations .owl-nav {
  margin-top: 10px;
}
.recommendations .owl-nav button.owl-prev,
.recommendations .owl-nav button.owl-next {
  width: 42px;
  height: 42px;
  margin: 0 6px;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 50%;
  color: #eee !important;
  background: rgba(0,0,0,.25) !important;
  font-size: 15px;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.recommendations .owl-nav button.owl-prev:hover,
.recommendations .owl-nav button.owl-next:hover {
  background: #C49B66 !important;
  border-color: #C49B66 !important;
  color: #1a1205 !important;
}
.recommendations .owl-dots {
  margin-top: 18px;
  text-align: center;
}
.recommendations .owl-dots .owl-dot span {
  width: 9px;
  height: 9px;
  margin: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  display: inline-block;
  transition: background .3s ease, transform .3s ease;
}
.recommendations .owl-dots .owl-dot.active span {
  background: #C49B66;
  transform: scale(1.25);
}

@media screen and (max-width: 767px) {
  .recommendations { background-attachment: scroll; }
  .recommendations .ritem .quote { font-size: 16px; }
}

/* Recommendation headshots + company label */
.recommendations .rec-photo {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 3px;
  background: #131414;
  box-shadow: 0 0 0 2px #C49B66;
}
.recommendations .rec-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.recommendations .rec-co {
  display: inline-block;
  margin: 10px 0 6px;
  padding: 4px 14px;
  border: 1px solid rgba(196,155,102,.45);
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C49B66;
}
.recommendations .rec-rel {
  display: block;
}

/* Keep the "Milad Sohrabi" logo on a single line (template sets width:90px) */
.navbar .logo {
  width: auto;
  white-space: nowrap;
}
