/**
 * Portfolio — Data Scientist · Mathematician
 * Aesthetic: Academic precision meets modern data science
 * Fonts: Cormorant Garamond (headings) · IBM Plex Sans (body) · IBM Plex Mono (nav/code)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Cormorant Garamond", Georgia, serif;
  --nav-font: "IBM Plex Mono", "Courier New", monospace;
}

:root {
  --background-color: #f7f6f2;
  --default-color: #1c1c22;
  --heading-color: #0d1117;
  --accent-color: #1a4fd6;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

:root {
  --nav-color: #8a91a8;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #080f1e;
  --nav-dropdown-background-color: #080f1e;
  --nav-dropdown-color: #8a91a8;
  --nav-dropdown-hover-color: #ffffff;
}

.light-background {
  --background-color: #eef1f7;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #080f1e;
  --default-color: #dce3f0;
  --heading-color: #f0f4ff;
  --surface-color: #0f1a2e;
  --contrast-color: #ffffff;
}

:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/*--------------------------------------------------------------
# PHP Email Form
--------------------------------------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #c0392b;
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
}

.php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #16a085;
  text-align: center;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
}

.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: 22px;
  height: 22px;
  margin: 0 10px -5px 0;
  border: 2px solid var(--accent-color);
  border-top-color: transparent;
  animation: php-email-form-loading 0.8s linear infinite;
}

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

/*--------------------------------------------------------------
# Global Header — Deep Navy Sidebar
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: #080f1e;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 20px;
  width: 280px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid rgba(255, 255, 255, 0.05);

  /* Subtle grid texture — mathematical graph paper feel */
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Scrollbar styling for sidebar */
.header::-webkit-scrollbar { width: 4px; }
.header::-webkit-scrollbar-track { background: transparent; }
.header::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.header .profile-img img {
  margin: 24px auto 16px;
  display: block;
  width: 110px;
  border-radius: 50%;
  border: 3px solid rgba(26, 79, 214, 0.5);
  box-shadow: 0 0 0 6px rgba(26, 79, 214, 0.08);
  transition: box-shadow 0.3s ease;
}

.header .profile-img img:hover {
  box-shadow: 0 0 0 8px rgba(26, 79, 214, 0.18);
}

.header .logo {
  line-height: 1;
  margin-bottom: 12px;
  text-align: center;
}

.header .logo h1 {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: #f0f4ff;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Subtitle under name */
.header .logo h1::after {
  content: "Data Scientist · AI for Health";
  display: block;
  font-family: var(--nav-font);
  font-size: 10px;
  font-weight: 400;
  color: rgba(138, 145, 168, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
}

.header .social-links {
  margin: 0 0 18px 0;
  text-align: center;
}

.header .social-links a {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #8a91a8;
  margin: 0 3px;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.header .social-links a:hover {
  color: #ffffff;
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 79, 214, 0.35);
}

@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 280px;
  }
}

@media (max-width: 1199px) {
  .header { left: -100%; }
}

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

.header .header-toggle {
  color: #ffffff;
  background-color: var(--accent-color);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(26, 79, 214, 0.4);
}

.header .header-toggle:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 15%);
  box-shadow: 0 4px 18px rgba(26, 79, 214, 0.5);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle { display: none; }

.navmenu { padding: 0; z-index: 9997; }

.navmenu ul {
  list-style: none;
  padding: 0 0 24px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 10px 14px;
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 2px;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 17px;
  margin-right: 10px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/* Active indicator — left accent line */
.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
  background: rgba(26, 79, 214, 0.12);
  padding-left: 18px;
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
  opacity: 1;
}

/* Active left border pill */
.navmenu .active::before,
.navmenu .active:focus::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 0 2px 2px 0;
}

.navmenu a { position: relative; }

/* Dropdown */
.navmenu .dropdown { display: block; }

.navmenu .dropdown a,
.navmenu .dropdown a:focus { color: var(--nav-dropdown-color); }

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus { color: var(--nav-dropdown-hover-color); }

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 4px 10px;
  margin: 4px 10px;
  background-color: rgba(8, 15, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navmenu .dropdown > .dropdown-active {
  display: block;
  background-color: rgba(255, 255, 255, 0.02);
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 11px;
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  background-color: rgba(26, 79, 214, 0.15);
  color: var(--accent-color);
}

.navmenu a .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: rotate(180deg);
}

/* Divider above nav */
.navmenu ul::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 13px;
  padding: 32px 0;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  font-family: var(--nav-font);
  letter-spacing: 0.02em;
}

.footer .copyright p { margin-bottom: 0; opacity: 0.7; }
.footer .credits { margin-top: 4px; font-size: 12px; text-align: center; opacity: 0.5; }

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #080f1e;
  transition: all 0.5s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 24px);
  left: calc(50% - 24px);
  border: 2px solid rgba(26, 79, 214, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: animate-preloader 0.7s linear infinite;
}

@keyframes animate-preloader {
  to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(26, 79, 214, 0.4);
}

.scroll-top i {
  font-size: 20px;
  color: #ffffff;
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 15%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 79, 214, 0.5);
}

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

/*--------------------------------------------------------------
# Mobile AOS
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/*--------------------------------------------------------------
# Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 28px 0;
  position: relative;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  font-family: var(--nav-font);
  letter-spacing: 0.04em;
  opacity: 0.6;
}

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

.page-title .breadcrumbs ol li + li::before {
  content: "·";
  display: inline-block;
  padding-right: 10px;
  color: var(--accent-color);
}

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

/*--------------------------------------------------------------
# Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 52px;
  position: relative;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 18px;
  position: relative;
  font-style: italic;
  letter-spacing: -0.03em;
}

/* Accent underline */
.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  line-height: 1.8;
}

/*--------------------------------------------------------------
# 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: color-mix(in srgb, var(--background-color), transparent 60%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Subtle mathematical grid — precision aesthetic */
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(26,79,214,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,79,214,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

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

.hero h2 {
  margin: 0;
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-style: italic;
  line-height: 1.05;
}

.hero p {
  margin: 10px 0 0 0;
  font-size: 20px;
  font-family: var(--nav-font);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

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

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

.hero .social-links a {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-right: 10px;
  transition: all 0.25s ease;
}

.hero .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(26, 79, 214, 0.06);
  transform: translateY(-2px);
}

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

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 26px;
  font-style: italic;
  margin-bottom: 20px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
}

.about .content ul strong {
  margin-right: 8px;
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  white-space: nowrap;
  min-width: 80px;
}

.about .content ul i {
  font-size: 14px;
  margin-right: 8px;
  color: var(--accent-color);
  line-height: 1.6;
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 28px 24px;
  width: 100%;
  border-left: 2px solid var(--accent-color);
  background: var(--surface-color);
  border-radius: 0 8px 8px 0;
  transition: all 0.25s ease;
}

.stats .stats-item:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 0 0 var(--accent-color);
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 36px;
  float: left;
  line-height: 0;
  opacity: 0.7;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 44px;
  line-height: 1;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
  margin-left: 52px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  padding: 8px 0 0 0;
  margin: 0 0 0 52px;
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/*--------------------------------------------------------------
# Skills Section — Refined Progress Bars
--------------------------------------------------------------*/
.skills .progress {
  height: 56px;
  display: block;
  background: none;
  border-radius: 0;
  margin-bottom: 6px;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 500;
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  color: var(--accent-color);
  font-weight: 500;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  height: 4px;
  border-radius: 2px;
  overflow: visible;
  position: relative;
}

.skills .progress-bar {
  width: 1px;
  height: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--accent-color), #4d8aff);
  border-radius: 2px;
  position: relative;
}

/* Tick mark at the end of the bar */
.skills .progress-bar::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 2px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 1px;
}

/*--------------------------------------------------------------
# Resume Section — Clean Timeline
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  font-family: var(--heading-font);
  margin-top: 32px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.resume .resume-item {
  padding: 0 0 28px 24px;
  margin-top: -2px;
  border-left: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 1.3;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--default-color);
  margin-bottom: 6px;
  font-family: var(--nav-font);
  letter-spacing: 0.04em;
  font-size: 12px;
}

.resume .resume-item h5 {
  font-size: 13px;
  padding: 4px 12px;
  display: inline-block;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: var(--nav-font);
  background: rgba(26, 79, 214, 0.07);
  color: var(--accent-color);
  border-radius: 4px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(26, 79, 214, 0.15);
}

.resume .resume-item ul {
  padding-left: 16px;
  font-size: 14px;
}

.resume .resume-item ul li {
  padding-bottom: 8px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.65;
}

.resume .resume-item:last-child { padding-bottom: 0; }

/* Dot on timeline */
.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: -5.5px;
  top: 3px;
  background: var(--surface-color);
  border: 2px solid var(--accent-color);
  transition: background 0.2s ease;
}

.resume .resume-item:hover::before {
  background: var(--accent-color);
}

/* Column separator on desktop */
@media (min-width: 992px) {
  .resume .resume-col-left {
    border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 91%);
    padding-right: 48px;
  }
  .resume .resume-col-right {
    padding-left: 48px;
  }
}

/* Resume section CV CTA */
.resume .resume-cta {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 91%);
}

.resume .resume-cta-label {
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 16px;
}

/*--------------------------------------------------------------
# Portfolio Section — Professional Card Design
--------------------------------------------------------------*/

/* ── Filter pills ── */
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 36px auto;
  list-style: none;
  text-align: center;
  font-family: var(--nav-font);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  background: transparent;
  transition: all 0.22s ease;
}

.portfolio .portfolio-filters li:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(26,79,214,0.05);
}

.portfolio .portfolio-filters li.filter-active {
  color: #fff;
  border-color: var(--accent-color);
  background: var(--accent-color);
  box-shadow: 0 4px 14px rgba(26,79,214,0.3);
}

/* ── Card shell ── */
.pcard {
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.pcard:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(0,0,0,0.13);
  border-color: color-mix(in srgb, var(--default-color), transparent 78%);
}

/* ── Visual header ── */
.pcard-visual {
  height: 148px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 18px 16px;
}

.pcard-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.pcard-ring-1 {
  width: 180px; height: 180px;
  top: -70px; left: -50px;
  border: 1.5px solid rgba(255,255,255,0.11);
}
.pcard-ring-2 {
  width: 110px; height: 110px;
  bottom: -35px; right: 14px;
  background: rgba(255,255,255,0.05);
}
.pcard-ring-3 {
  width: 56px; height: 56px;
  top: 18px; right: 56px;
  border: 1.5px solid rgba(255,255,255,0.09);
}

.pcard-bg-icon {
  position: absolute;
  bottom: -14px;
  right: -6px;
  font-size: 104px;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}

.pcard-cat {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 11px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

/* ── Gradient themes ── */
.pv-brain    { background: linear-gradient(135deg, #0b1d5c 0%, #1a4fd6 62%, #4d8aff 100%); }
.pv-air      { background: linear-gradient(135deg, #063a2a 0%, #0d7a5a 62%, #2dd4a8 100%); }
.pv-portopt  { background: linear-gradient(135deg, #1a1640 0%, #312e81 62%, #6366f1 100%); }
.pv-streamlit{ background: linear-gradient(135deg, #6b1b00 0%, #c2560c 62%, #fb923c 100%); }
.pv-thesis   { background: linear-gradient(135deg, #240e50 0%, #5b32b4 62%, #a78bfa 100%); }
.pv-caseg    { background: linear-gradient(135deg, #0f172a 0%, #1e293b 62%, #475569 100%); }
.pv-graph    { background: linear-gradient(135deg, #0a3d35 0%, #0e8a7a 62%, #2dd4bf 100%); }
.pv-traffic  { background: linear-gradient(135deg, #4a1d00 0%, #b45309 62%, #fbbf24 100%); }
.pv-objdet   { background: linear-gradient(135deg, #0a2d4a 0%, #0369a1 62%, #38bdf8 100%); }
.pv-dlcomp   { background: linear-gradient(135deg, #1a0e40 0%, #4338ca 62%, #818cf8 100%); }

/* ── Card body ── */
.pcard-body {
  padding: 18px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pcard-title {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--heading-color);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pcard-desc {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 12px;
}

/* ── Tags ── */
.pcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.pcard-tag {
  font-family: var(--nav-font);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent-color), transparent 93%);
  color: var(--accent-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 82%);
}

/* ── Action buttons ── */
.pcard-actions {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  flex-wrap: wrap;
  align-items: center;
}

.pcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--nav-font);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.pcard-btn i { font-size: 12px; }

.pcard-btn-gh {
  background: #0d1117;
  color: #c9d1d9 !important;
  border-color: #30363d;
}
.pcard-btn-gh:hover {
  background: #161b22;
  color: #fff !important;
  border-color: #6e7681;
}

.pcard-btn-demo {
  background: var(--accent-color);
  color: #fff !important;
}
.pcard-btn-demo:hover { background: #1340b0; }

.pcard-btn-pdf {
  background: #312e81;
  color: #e0d9ff !important;
  border-color: #4c47a8;
}
.pcard-btn-pdf:hover { background: #24216b; }

.pcard-btn-more {
  background: transparent;
  color: color-mix(in srgb, var(--default-color), transparent 30%) !important;
  border-color: color-mix(in srgb, var(--default-color), transparent 78%);
  margin-left: auto;
}
.pcard-btn-more:hover {
  border-color: var(--accent-color);
  color: var(--accent-color) !important;
}

/* Keep old portfolio-content/portfolio-info hidden (no longer used) */
.portfolio .portfolio-content .portfolio-info { display: none; }

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
  padding: 24px;
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
}

.services .service-item:hover {
  border-color: rgba(26, 79, 214, 0.3);
  box-shadow: 0 4px 24px rgba(26, 79, 214, 0.08);
  transform: translateY(-2px);
}

.services .service-item .icon {
  background: rgba(26, 79, 214, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 79, 214, 0.15);
  margin-right: 18px;
}

.services .service-item .icon i {
  color: var(--accent-color);
  font-size: 22px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.services .service-item:hover .icon i { color: #ffffff; }

.services .service-item .title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
}

.services .service-item .title a { color: var(--heading-color); }
.services .service-item .title a:hover { color: var(--accent-color); }

.services .service-item .description {
  line-height: 1.7;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider { overflow: hidden; }

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 300px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 80px;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid rgba(26, 79, 214, 0.2);
}

.testimonials .testimonial-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 12px 0 4px 0;
  font-family: var(--heading-font);
}

.testimonials .testimonial-item h4 {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
  font-family: var(--nav-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

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

.testimonials .testimonial-item p {
  font-style: italic;
  font-family: var(--heading-font);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 15px 15px 15px;
  padding: 20px 24px;
  background-color: var(--surface-color);
  position: relative;
  margin-bottom: 35px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 16px solid var(--surface-color);
  border-right: 16px solid transparent;
  border-left: 16px solid transparent;
  position: absolute;
  bottom: -16px;
  left: calc(50% - 16px);
}

.testimonials .swiper-wrapper { height: auto; }

.testimonials .swiper-pagination {
  margin-top: 32px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: color-mix(in srgb, var(--default-color), transparent 75%);
  opacity: 1;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  width: 20px;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 8px;
  padding: 32px;
}

@media (max-width: 575px) {
  .contact .info-wrap { padding: 20px; }
}

.contact .info-item {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
}

.contact .info-item i {
  font-size: 18px;
  color: var(--accent-color);
  background: rgba(26, 79, 214, 0.07);
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: all 0.25s ease;
  margin-right: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(26, 79, 214, 0.12);
}

.contact .info-item h3 {
  font-size: 13px;
  font-family: var(--nav-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-style: normal;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--default-color);
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(26, 79, 214, 0.3);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

@media (max-width: 575px) {
  .contact .php-email-form { padding: 20px; }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  font-family: var(--default-font);
  padding: 10px 14px;
  box-shadow: none;
  border-radius: 6px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.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(26, 79, 214, 0.08);
  outline: none;
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 65%);
  font-size: 13px;
}

.contact .php-email-form button[type=submit] {
  color: #ffffff;
  background: var(--accent-color);
  border: none;
  padding: 10px 28px;
  transition: all 0.25s ease;
  border-radius: 6px;
  font-family: var(--nav-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), #000 15%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 79, 214, 0.4);
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
  border-radius: 8px;
}

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

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: color-mix(in srgb, var(--default-color), transparent 80%);
  opacity: 1;
  border-radius: 2px;
}

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

.portfolio-details .portfolio-info {
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 8px;
  background: var(--surface-color);
}

.portfolio-details .portfolio-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  font-style: italic;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 13px;
  font-family: var(--nav-font);
}

.portfolio-details .portfolio-info ul li + li { margin-top: 10px; }

.portfolio-details .portfolio-description { padding-top: 28px; }

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

.portfolio-details .portfolio-description p {
  font-size: 14px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

/*--------------------------------------------------------------
# Service Details
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 12px 24px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 8px;
  margin-bottom: 20px;
  background: var(--surface-color);
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 10px 0 10px 14px;
  border-left: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  margin: 16px 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  transition: all 0.2s ease;
  font-size: 14px;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 600;
  border-color: var(--accent-color);
  padding-left: 18px;
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
  color: var(--heading-color);
  padding-left: 18px;
}

.service-details .services-img { margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
.service-details h3 { font-size: 24px; font-weight: 700; font-style: italic; }
.service-details h4 { font-size: 18px; font-weight: 600; }
.service-details p { font-size: 14px; line-height: 1.8; }

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.service-details ul li {
  padding: 6px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 18px;
  margin-right: 10px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section
--------------------------------------------------------------*/
.starter-section { /* your custom content here */ }

/*--------------------------------------------------------------
# Project Cards — Elevated Professional Style
--------------------------------------------------------------*/
.project-placeholder {
  padding: 24px 22px;
  border-radius: 10px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  text-align: left;
  height: 100%;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle corner decoration */
.project-placeholder::after {
  content: "{ }";
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--nav-font);
  font-size: 11px;
  color: color-mix(in srgb, var(--default-color), transparent 82%);
  letter-spacing: 0.1em;
}

.project-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
  border-color: color-mix(in srgb, var(--default-color), transparent 75%);
}

.project-placeholder h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--heading-color);
  line-height: 1.3;
  font-style: italic;
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
}

.project-placeholder p {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin-bottom: 0;
  line-height: 1.65;
  flex-grow: 1;
}

/* Top border accents — unified 2-tone palette */
.brain-tumor       { border-top: 3px solid #1a4fd6; }
.air-quality       { border-top: 3px solid #1a4fd6; }
.streamlit-app     { border-top: 3px solid #1a4fd6; }
.portfolio-opt     { border-top: 3px solid #312e81; }
.thesis            { border-top: 3px solid #312e81; }
.caseg             { border-top: 3px solid #374151; }
.graph-theory      { border-top: 3px solid #312e81; }
.traffic-detection { border-top: 3px solid #1a4fd6; }
.object-detection  { border-top: 3px solid #1a4fd6; }
.dl-competition    { border-top: 3px solid #1a4fd6; }

/* Subtle unified hover backgrounds */
.brain-tumor:hover       { background: rgba(26,79,214,0.03); }
.air-quality:hover       { background: rgba(26,79,214,0.03); }
.streamlit-app:hover     { background: rgba(26,79,214,0.03); }
.portfolio-opt:hover     { background: rgba(49,46,129,0.03); }
.thesis:hover            { background: rgba(49,46,129,0.03); }
.caseg:hover             { background: rgba(55,65,81,0.03); }
.graph-theory:hover      { background: rgba(49,46,129,0.03); }
.traffic-detection:hover { background: rgba(26,79,214,0.03); }
.object-detection:hover  { background: rgba(26,79,214,0.03); }
.dl-competition:hover    { background: rgba(26,79,214,0.03); }


/*--------------------------------------------------------------
# 2026 update: highlights, research list, new project themes
--------------------------------------------------------------*/
.hl-card {
  height: 100%;
  padding: 22px 22px 20px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-top: 3px solid var(--accent-color);
  border-radius: 10px;
  transition: all 0.25s ease;
}
.hl-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.08); }
.hl-num {
  font-family: var(--heading-font);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--heading-color);
}
.hl-label {
  display: block;
  margin-top: 10px;
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.hl-text {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.research-item {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}
.research-item:last-child { border-bottom: none; }
.research-year {
  flex: 0 0 92px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  padding-top: 4px;
}
.research-kind {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--nav-font);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}
.research-title {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: var(--heading-color);
  margin-bottom: 8px;
}
.research-desc {
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  margin-bottom: 12px;
}
.research-links { display: flex; flex-wrap: wrap; gap: 6px; }
.research-links .pcard-btn-more { margin-left: 0; }
@media (max-width: 767px) {
  .research-item { flex-direction: column; gap: 6px; }
  .research-year { flex: none; padding-top: 0; }
}

.pcard-btn-lock {
  background: transparent;
  color: color-mix(in srgb, var(--default-color), transparent 40%) !important;
  border: 1px dashed color-mix(in srgb, var(--default-color), transparent 70%);
  cursor: default;
}

.pv-cro    { background: linear-gradient(135deg, #3b0612 0%, #a10e2b 62%, #e5485f 100%); }
.pv-speech { background: linear-gradient(135deg, #3a0a2e 0%, #9d174d 62%, #f472b6 100%); }
.pv-ocr    { background: linear-gradient(135deg, #083344 0%, #0e7490 62%, #67e8f9 100%); }
.pv-zindi  { background: linear-gradient(135deg, #3f2a00 0%, #a16207 62%, #fde047 100%); }
.pv-wolof  { background: linear-gradient(135deg, #052e16 0%, #15803d 62%, #86efac 100%); }
.pv-rag    { background: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 62%, #c4b5fd 100%); }
.pv-agent  { background: linear-gradient(135deg, #0c1a3a 0%, #1e40af 62%, #93c5fd 100%); }
.pv-mathbio{ background: linear-gradient(135deg, #042f2e 0%, #0f766e 62%, #5eead4 100%); }
.pv-fcc    { background: linear-gradient(135deg, #111827 0%, #374151 62%, #9ca3af 100%); }
