/**
 * custom.css — Portfolio UI Improvements
 * Layered on top of the Kards base theme
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --accent:       #5c6bc0;
  --accent-light: #7986cb;
  --accent-dark:  #3949ab;
}

/* ============================================================
   SECTION SCROLL OFFSET — clear the 66px fixed header
   ============================================================ */
#about,
#resume,
#portfolio,
#work-projects,
#contact {
  scroll-margin-top: 66px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.nav-scrolled {
  background: rgba(13, 13, 13, 0.96);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

header .top-bar {
  position: static;
  left: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  min-height: 66px;
  min-width: 100%;
  box-sizing: border-box;
}

header .logo {
  float: none;
  margin: 0;
  position: static;
}

header .logo a {
  font-family: "poppins-bold", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #ffffff;
  text-shadow: none;
  width: auto;
  height: auto;
  background: none;
  letter-spacing: 0.05rem;
  display: inline-block;
}

header .logo a:hover {
  color: var(--accent-light);
}

/* --- Desktop nav: horizontal --- */
@media only screen and (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  #main-nav-wrap {
    position: static;
    width: auto;
  }

  .main-navigation {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 0;
    margin: 0;
    width: auto;
    height: 66px;
    clear: none;
  }

  .main-navigation > li {
    display: inline-flex;
    align-items: center;
    height: 66px;
    padding: 0;
  }

  .main-navigation li a {
    color: rgba(255, 255, 255, 0.78);
    padding: 0 14px;
    line-height: 66px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
    display: block;
  }

  .main-navigation li a:hover {
    color: #ffffff;
    padding-left: 14px; /* prevent the +1rem left-shift from base CSS */
    border-bottom: 2px solid var(--accent-light);
    background: none;
  }

  .main-navigation li.current > a {
    color: #ffffff;
    background: none;
    border-bottom: 2px solid var(--accent-light);
  }
}

/* --- Mobile nav: keep hamburger, just tidy it --- */
@media only screen and (max-width: 768px) {
  header .top-bar {
    padding: 0 15px;
  }

  .menu-toggle {
    float: none;
    margin: 0;
    order: 2;
  }
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-content h5 {
  color: var(--accent-light);
  letter-spacing: 0.4rem;
}

.intro-social li a {
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.intro-social li a:hover {
  color: var(--accent-light);
  transform: translateY(-4px);
}

/* ============================================================
   SECTION HEADINGS — accent colour on the label
   ============================================================ */
.section-intro h5,
.resume-header h5 {
  color: var(--accent);
}


/* ============================================================
   ABOUT — profile pic & profile list
   ============================================================ */
.intro-info img {
  border-radius: 50%;
  border: 4px solid var(--accent-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.intro-info img:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

/* Remove <u> underlines and replace with a CSS accent border */
.about-content h3 {
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  display: inline-block;
  color: #313131;
}

.about-content h3 u {
  text-decoration: none;
}

.info-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 6px 0;
}

.info-list li strong {
  color: #313131;
}

.info-list li span {
  color: #555555;
}

/* ============================================================
   SKILL BARS — gradient fill instead of plain black
   ============================================================ */
.skill-bars li .progress {
  background: #6b6b6b;
  border-radius: 0 3px 3px 0;
}

.skill-bars li .progress span {
  background: #313131;
  font-size: 1rem;
}

.skill-bars li .progress span::after {
  border-top-color: #313131;
}

.skill-bars li strong {
  color: #313131;
}

/* ============================================================
   RESUME TIMELINE — accent colours
   ============================================================ */
.timeline-ico {
  background: var(--accent) !important;
  border-color: var(--accent-light) !important;
}

.timeline-header h3 {
  color: #313131;
}

.timeline-header p {
  color: var(--accent-light) !important;
  font-style: italic;
}

.timeline-content h4 {
  color: #313131;
}

/* ============================================================
   WORK PROJECTS — restore styles lost when id was renamed from #portfolio
   ============================================================ */
#work-projects {
  background: #FFFFFF;
  padding-top: 12rem;
  padding-bottom: 12rem;
}

#work-projects .folio-item {
  padding: 0;
  position: relative;
  overflow: hidden;
}

#work-projects .folio-item img {
  vertical-align: middle;
  transition: all 0.5s ease-in-out;
}

#work-projects .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  transition: all 0.5s ease-in-out;
}

#work-projects .folio-item-table {
  display: table;
  width: 100%;
  height: 100%;
}

#work-projects .folio-item-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  transition: all 0.5s ease-in-out;
  position: relative;
  left: -100%;
}

#work-projects .folio-title {
  color: #FFFFFF;
  font-size: 3.3rem;
  padding: 0 3rem;
  margin-bottom: 0;
}

#work-projects .folio-types {
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-family: "poppins-regular", sans-serif;
  font-size: 1.2rem;
  letter-spacing: .1rem;
  color: rgba(255, 255, 255, 0.6);
}

#work-projects .folio-item:hover .overlay {
  background: rgba(0, 0, 0, 0.8);
}

#work-projects .folio-item:hover .folio-item-cell {
  left: 0;
}

#work-projects .folio-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   PORTFOLIO ITEMS — uniform card height, zoom-on-hover & tinted overlay
   ============================================================ */
.folio-item .item-wrap {
  overflow: hidden;
  height: 280px;
  position: relative;
}

.folio-item .item-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.folio-item .item-wrap:hover img {
  transform: scale(1.07);
}

.folio-item .item-wrap .overlay {
  transition: background 0.35s ease;
}

.folio-item .item-wrap:hover .overlay {
  background: rgba(57, 73, 171, 0.82);
}

/* ============================================================
   BUTTONS
   ============================================================ */

/* Stroke button in the dark intro hero — white outline */
#intro .button.stroke {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

#intro .button.stroke:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.button.button-primary {
  background: var(--accent);
}

.button.button-primary:hover {
  background: var(--accent-dark);
}

/* ============================================================
   CONTACT — info links visible on dark background
   ============================================================ */
.contact-info p,
.contact-info p a {
  color: rgba(255, 255, 255, 0.75);
}

.contact-info p a:hover {
  color: #ffffff;
}

/* ============================================================
   CONTACT — form focus & submit button
   ============================================================ */
#contact input:focus,
#contact textarea:focus {
  border-bottom-color: var(--accent);
  color: #313131;
}

.submitform {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-radius: 3px;
  letter-spacing: 0.2rem;
}

.submitform:hover {
  background: var(--accent-dark) !important;
}

/* ============================================================
   FOOTER — social icons & back-to-top button
   ============================================================ */
footer {
  background: #0d0d0d;
}

footer .footer-social {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0 0 2rem;
  padding: 0;
  justify-content: center;
}

footer .footer-social li a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 2.2rem;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

footer .footer-social li a:hover {
  color: var(--accent-light);
  transform: translateY(-4px);
}

footer .footer-copy {
  font-family: "poppins-regular", sans-serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  margin-bottom: 0;
}

#go-top a {
  background: var(--accent);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  line-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

#go-top a:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
}

#go-top a i {
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
}
