/**
Vivian Nguyen_portfolio
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors */
:root {
  --background-color: #ffffff;
  --default-color: #272829;
  --heading-color: #45505b;
  --accent-color: #0563bb;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: #45505b;
  --nav-hover-color: #0563bb;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #0563bb;
}

/* Color Presets */
.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--nav-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--nav-font);
}

/* PHP Email Form Messages */
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  min-width: 200px;
}

@media (max-width: 1199px) {
  .header {
    background-color: var(--background-color);
    border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    width: 300px;
    left: -100%;
  }
}

@media (min-width: 1200px) and (max-width: 1600px) {
  .header ~ main {
    margin-left: 160px;
  }

  .header ~ main .hero {
    margin-left: -160px;
    width: 100vw;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
  width: 140px;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  font-family: var(--nav-font);
  display: flex;
  align-items: center;
  padding: 10px 18px;
  margin-bottom: 8px;
  font-size: 15px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}

.navmenu a i,
.navmenu a:focus i {
  font-size: 20px;
}

.navmenu a span,
.navmenu a:focus span {
  padding: 0 5px 0 7px;
}

@media (min-width: 992px) {
  .navmenu a,
  .navmenu a:focus {
    max-width: 56px;
  }

  .navmenu a span,
  .navmenu a:focus span {
    display: none;
  }
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover > a {
  color: var(--contrast-color);
  background: var(--nav-hover-color);
}

.navmenu a:hover,
.navmenu li:hover > a {
  max-width: 100%;
  color: var(--contrast-color);
}

.navmenu a:hover span,
.navmenu li:hover > a span {
  display: block;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

.footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer .social-links {
  margin: 0 0 30px 0;
}

.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: none;
}

.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  position: relative;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 20px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/

/* About section title */
.about .section-title {
  padding-bottom: 32px;
}

/* Outer card */
.about-card {
  display: flex;
  align-items: stretch;
  gap: 40px;
  background: #ffffff;
  padding: 40px 48px;
  border-radius: 30px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  max-width: 1250px;
  margin: 0 auto;
}

/* Photo column */
.about-photo {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
}

/* Right content */
.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Heading + tagline */
.about-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.about-tagline {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 22px;
  text-align: justify; /* optional: cleaner edge */
  hyphens: auto;
}

/* Two-column grid (WHAT I OFFER + TOOLS) */
.about-subgrid {
  display: flex;
  gap: 60px; /* MORE SPACE between columns */
  flex-wrap: nowrap;
}

/* WHAT I OFFER column (WIDER to force 2-line bullets) */
.about-col:first-child {
  flex: 1.4; /* takes more horizontal space */
  max-width: 650px; /* restrict bullet width to 2 lines */
}

/* TOOLS column (NARROWER + lightly pushed right) */
.about-col:last-child {
  flex: 0.8;
  padding-left: 20px; /* aligns with first sentence */
}

/* Column titles */
.about-column-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
  font-family: var(--nav-font);
}

/* Bullet list */
.about-offer-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about-offer-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #111827;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  max-width: 560px; /* KEY: forces bullet to 2 lines only */
}

.about-offer-list li::before {
  content: "›";
  font-size: 16px;
  color: #0ea5e9;
  margin-right: 8px;
  margin-top: 1px;
}

/* Tool chips */
.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px; /* aligns tools with correct vertical spacing */
}

.tool-tag {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

/* Bottom paragraph (if used) */
.about-bottom {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin-top: auto;
  text-align: justify;
  hyphens: auto;
}

/* Responsive */
@media (max-width: 991.98px) {
  .about-card {
    flex-direction: column;
    padding: 30px 24px;
  }

  .about-subgrid {
    flex-wrap: wrap;
    gap: 32px;
  }

  .about-col:first-child,
  .about-col:last-child {
    flex: 1 1 100%;
    max-width: 100%;
    padding-left: 0;
  }

  .about-offer-list li {
    max-width: 100%;
  }

  .about-photo img {
    max-width: 260px;
  }
}

@media (max-width: 575.98px) {
  .about-heading {
    font-size: 22px;
  }

  .about-subgrid {
    flex-direction: column;
    gap: 24px;
  }
}



/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  margin-top: 10px;
  width: 100%;
  position: relative;
  text-align: center;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .skills-category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--heading-color);
}

/* Card-like wrapper for both columns */
.skills .skills-content {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  padding: 32px 40px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* Progress rows */
.skills .progress {
  height: 70px;
  display: block;
  background: none;
  border-radius: 0;
  margin-bottom: 14px;
}

/* Skill label line */
.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: none;
  display: block;
  font-weight: 500;
  font-family: var(--nav-font);
  font-size: 14px;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  font-weight: 500;
}

/* Bar track */
.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
}

/* Bar fill */
.skills .progress-bar {
  width: 1px;
  height: 12px;
  transition: 0.9s;
  background: linear-gradient(90deg, #6366f1, var(--accent-color), #0ea5e9);
  border-radius: 999px;
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume.section {
  background-color: #ffffff;
}

/* Wrapper */
.resume-wrapper {
  max-width: 1400px;
  margin: 0 auto 48px auto;
}

/* Title spacing */
#resume .section-title {
  padding-bottom: 32px;
}

#resume .section-title h2 {
  margin-bottom: 14px;
  padding-bottom: 16px;
  font-size: 34px; /* increased */
}

/* Hide radio inputs */
.resume-wrapper input[type="radio"] {
  display: none;
}

/* Toggle buttons row */
.resume-toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* Toggle buttons */
.resume-toggle-btn {
  padding: 10px 30px;
  border-radius: 999px;
  border: 1px solid var(--accent-color);
  background: #ffffff;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 22px; /* increased */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  font-family: var(--nav-font);
}

/* Active state */
#resume-education:checked ~ .resume-toggle-buttons label[for="resume-education"],
#resume-experience:checked ~ .resume-toggle-buttons label[for="resume-experience"] {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* Tab containers */
.resume-cards {
  position: relative;
}

.resume-tab {
  display: none;
}

#resume-education:checked ~ .resume-cards .education-tab {
  display: block;
}

#resume-experience:checked ~ .resume-cards .experience-tab {
  display: block;
}

/* Main resume card */
.resume-card {
  background: #ffffff;
  border-radius: 22px;
  border: px solid #e5e7eb;
  padding: 40px 52px; /* slightly larger padding */
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  font-family: var(--nav-font);
  font-size: 16px; /* increased from 14px */
  line-height: 1.7; /* slightly increased */
}

/* Entries spacing */
.resume-entry + .resume-entry {
  margin-top: 28px; /* increased */
}

/* Divider line */
.resume-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 26px 0;
}

/* Date line */
.resume-date {
  font-size: 14px; /* increased from 12px */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  font-family: var(--nav-font);
}

/* Organisation (school/company) */
.resume-org {
  font-size: 24px; /* increased from 22px */
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
  font-family: var(--nav-font);
}

/* Role / degree */
.resume-role {
  font-size: 16px; /* increased from 14px */
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 4px;
  font-family: var(--nav-font);
}

/* Location */
.resume-location {
  font-size: 16px; /* increased from 14px */
  color: #6b7280;
  margin-bottom: 12px;
}

/* Bullet list */
.resume-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.resume-list li {
  font-size: 16px; /* increased from 14px */
  color: var(--default-color);
  line-height: 1.7;
  margin-bottom: 8px;
  font-family: var(--nav-font);
}

/* Responsive */
@media (max-width: 991.98px) {
  .resume-wrapper {
    max-width: 100%;
    margin: 0 auto 40px auto;
  }

  .resume-card {
    padding: 26px 22px;
    border-radius: 18px;
    font-size: 15px;
  }
}

@media (max-width: 575.98px) {
  .resume-toggle-buttons {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .resume-toggle-btn {
    padding: 8px 20px;
    font-size: 18px; /* increased */
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
/* Section background */
.portfolio.section {
  background-color: #ffffff;
}

/* Subtitle under Contact heading */
.portfolio-subtitle {
  font-size: 15px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 20px;
}

/* ==== Tighten Portfolio title → filters gap ==== */
#portfolio .section-title {
  padding-bottom: 16px !important;  /* was 60px */
  margin-bottom: 0 !important;
}

/* #portfolio .section-title h2 {
  margin-bottom: 10px !important;    /* less gap title → description */
  /* padding-bottom: 18px !important; */
/* } */ */

#portfolio .section-title p {
  margin-top: 10px !important;       /* description closer to title */
  margin-bottom: 10px !important;    /* description closer to filters */
}

/* Optional: tiny tweak to filters spacing */
#portfolio .portfolio-filters {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}


/* ---------- Filter pills ---------- */
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto !important;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px !important;
  flex-wrap: wrap;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent-color);
  background: #ffffff;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  font-family: var(--nav-font);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* ------------ Grid layout ------------ */
.portfolio .isotope-container {
  max-width: 1250px;
  margin: 0 auto;
}

.portfolio .portfolio-item {
  display: flex;
}

/* ------------ CARD layout ------------ */
.project-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Thumbnail */
.project-thumb {
  position: relative;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;   /* Bigger image height */
  object-fit: cover;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

/* Overlay */
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.35),
    rgba(15, 23, 42, 0.6)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

/* LINK pill */
.project-link-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 5;
  font-family: var(--nav-font);
}

/* Hover reveal */
.project-card:hover .project-thumb::after {
  opacity: 1;
}

.project-card:hover .project-link-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ------------ Card body ------------ */
.project-body {
  padding: 12px 28px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Title */
.project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
  font-family: var(--nav-font);
}

/* Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #0563bb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--nav-font);
}

/* Bullets */
.project-list {
  padding-left: 18px;
  margin: 0;
}

.project-list li {
  font-size: 15px;
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 6px;
  font-family: var(--nav-font);
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .project-body {
    padding: 18px 16px 20px;
  }

  .project-title {
    font-size: 18px;
  }
}

/* ------------ Pagination ------------ */
.portfolio-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.portfolio-pagination .page-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-color);
  background: #ffffff;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--nav-font);
  transition: all 0.2s ease;
}

.portfolio-pagination .page-btn:hover,
.portfolio-pagination .page-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.portfolio-pagination .page-btn:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: default;
  box-shadow: none;
}



/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/

/* Subtitle under Contact heading */
.contact-subtitle {
  font-size: 20px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 20px;
}

/* Card wrapper (optional, if you wrap columns in .contact-card) */
.contact-card {
  background: #f8fafc;
  padding: 25px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

/* Info items */
.contact .info-item {
  margin-bottom: 28px;
  transition: 0.2s ease-in-out;
}

.contact .info-item + .info-item {
  margin-top: 40px;
}

.contact .info-item:hover {
  transform: translateX(4px);
}

.contact .info-item i {
  color: var(--accent-color);
  background: #e0f0ff;
  font-size: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

/* Support h3 or h4 in HTML */
.contact .info-item h3,
.contact .info-item h4 {
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  font-family: var(--nav-font);
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 15px;
  color: #6b7280;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  height: 100%;
}

/* Modern form look */
.modern-form .form-control,
.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 12px 16px;
  box-shadow: none;
  border-radius: 14px;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: #d1d5db;
  transition: 0.25s;
}

.modern-form .form-control:focus,
.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.12);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[ type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/* Submit button */
.btn-submit,
.contact .php-email-form button[type="submit"] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 12px 40px;
  transition: 0.4s;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
}

.btn-submit:hover,
.contact .php-email-form button[type="submit"]:hover {
  background: #024a8c;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {
  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.portfolio-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/* ==========================================================
   TYPOGRAPHY NORMALISATION (align overall with Contact)
   ========================================================== */
body {
  font-size: 16px;
  font-family: var(--nav-font);
}

/* Section titles */
.section-title h2 {
  font-size: 30px;
  font-weight: 700;
}

/* Main card titles */
.about .content h2,
.resume-org,
.skills .skills-category-title,
.services .service-item h3,
.portfolio-details .portfolio-info h3,
.service-details h3,
.footer h3 {
  font-size: 20px;
  font-family: var(--nav-font);
  font-weight: 700;
}

/* Labels & meta text */
.about-label,
.resume-date,
.page-title .breadcrumbs ol,
.portfolio-details .portfolio-info ul strong {
  font-size: 12px;
  font-family: var(--nav-font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Body text across sections */
.about p,
.about-list li,
.resume-list li,
.stats .stats-item p,
.services .service-item p,
.portfolio .portfolio-item .portfolio-info p,
.portfolio-details .portfolio-description p,
.service-details p,
.service-details ul li,
.contact .info-item p,
.contact-subtitle {
  font-size: 14px;
  font-family: var(--nav-font);
  line-height: 1.6;
}

/* Portfolio filter labels */
.portfolio .portfolio-filters li {
  font-size: 14px;
}

/* Buttons */
.resume-toggle-btn,
.btn-submit,
.contact .php-email-form button[type="submit"] {
  font-size: 14px;
  font-family: var(--nav-font);
}
