/*Font Awesome Free Icon*/
@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
/*Google fonts*/
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Rubik:500,700,900&display=swap");

/* General style */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  line-height: 1.5;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #bdbdbd00;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
* {
  margin: 0;
  padding: 0;
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
}
::before,
::after {
  box-sizing: border-box;
}

/* =============================================
   CSS VARIABLES — light mode defaults
   ============================================= */
:root {
  --skin-color: #2196f3;
  --skin-color-dark: #1769aa;
  --bg-black-900: #f2f2fc;
  --bg-black-100: #fdf9ff;
  --bg-black-50: #ece8f5;
  --text-black-900: #302e4d;
  --text-black-700: #504e70;
  --text-black-600: #6b6988;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 18px rgba(48, 46, 77, 0.09);
  --card-hover-shadow: 0 8px 28px rgba(48, 46, 77, 0.16);
  --border-color: #e4e0f0;
  --accent-border: 4px solid var(--skin-color);
}

body.dark {
  --bg-black-900: #151515;
  --bg-black-100: #1e1e1e;
  --bg-black-50: #2a2a2a;
  --text-black-900: #ffffff;
  --text-black-700: #ececec;
  --text-black-600: #cccccc;
  --card-bg: #272727;
  --card-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --card-hover-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  --border-color: #3a3a3a;
}
input,
textarea,
select {
  font-family: "Montserrat", sans-serif;
}
.section {
  background-color: #f2f2fc;
  min-height: 100vh;
  display: block;
  padding: 0 30px;
  position: fixed;
  left: 270px;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.section.back-section {
  z-index: 1;
}
.section.active {
  z-index: 2;
  opacity: 1;
  -webkit-animation: slideSection 1s ease;
  animation: slideSection 1s ease;
}
@-webkit-keyframes slideSection {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}
@keyframes slideSection {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}
.section .container {
  padding-top: 60px;
  padding-bottom: 70px;
}
.section-title {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 40px;
  color: #302e4d;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-bottom: 20px;
}
.section-title h2::before {
  content: "";
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  position: absolute;
  top: 100%;
  left: 0;
  border-radius: 2px;
}
.section-title h2::after {
  content: "";
  height: 4px;
  width: 25px;
  background-color: var(--skin-color);
  opacity: 0.45;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  border-radius: 2px;
}
.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  position: relative;
}
.padd-15 {
  padding-left: 15px;
  padding-right: 15px;
}
.main-content {
  padding-left: 270px;
}
.container {
  max-width: 1100px;
  width: 100%;
  margin: auto;
}
.shadow-dark {
  -webkit-box-shadow: 0 0 20px rgba(48, 48, 77, 0.15);
  box-shadow: 0 0 20px rgba(48, 48, 77, 0.15);
}
.btn {
  font-size: 16px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  padding: 12px 35px;
  color: #fff;
  border-radius: 40px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}
.hidden {
  display: none !important;
}

/* Preloader */
.preloader {
  background-color: #222222;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 150;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
}
.preloader.opacity-0 {
  opacity: 0;
}
.preloader .loader {
  height: 40px;
  width: 40px;
  border: 4px solid #e3e3e3;
  border-radius: 50%;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Aside */
.aside {
  width: 270px;
  background-color: #fdf9ff;
  position: fixed;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 11;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aside .aside-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  overflow-y: auto;
}
.aside .logo {
  padding: 30px 0;
}
.aside .logo a {
  font-size: 40px;
  color: #302e4d;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding: 0 10px;
  line-height: 50px;
}
.aside .logo a::before {
  content: "";
  height: 20px;
  width: 20px;
  position: absolute;
  top: 0;
  left: 0;
}
.aside .logo a::after {
  content: "";
  height: 20px;
  width: 20px;
  position: absolute;
  bottom: 0;
  right: 0;
}
.aside .nav-toggler {
  height: 40px;
  width: 45px;
  border: 1px solid #d4d4e3;
  cursor: pointer;
  position: fixed;
  left: 300px;
  top: 20px;
  z-index: 11;
  border-radius: 5px;
  background-color: #fdf9ff;
  /* display: -ms-flexbox;
    display: flex; */
  display: none;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aside .nav-toggler span {
  height: 2px;
  width: 18px;
  display: inline-block;
  position: relative;
}
.aside .nav-toggler.open span {
  background-color: transparent;
}
.aside .nav-toggler span::before {
  content: "";
  height: 2.5px;
  width: 18px;
  position: absolute;
  top: -6px;
  left: 0;
}
.aside .nav-toggler.open span::before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 0px;
}
.aside .nav-toggler span::after {
  content: "";
  height: 2.5px;
  width: 18px;
  position: absolute;
  top: 6px;
  left: 0;
}
.aside .nav-toggler.open span::after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 0px;
}
.aside .nav {
  list-style: none;
  margin: 80px 0;
  padding: 0;
}
.aside .nav li {
  display: block;
}
.aside .nav li a {
  font-size: 16px;
  font-weight: 600;
  color: #302e4d;
  line-height: 45px;
  display: block;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-transform: capitalize;
}
.aside .nav li a:not(.active):hover {
  padding-left: 5px;
}
.aside .nav li a.active {
  color: var(--skin-color);
}
.aside .nav li a .fa {
  margin-right: 5px;
}
.aside .copyright {
  font-size: 14px;
  color: #7d7d7d;
}
/* Home */
.home {
  min-height: 100vh;
  display: -ms-flexbox;
  display: flex;
}
.home .intro {
  text-align: center;
}
.home .intro img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: inline-block;
  border: 5px solid var(--skin-color);
  box-shadow: 0 0 0 6px var(--bg-black-50), 0 0 30px rgba(0,0,0,0.18);
  object-fit: cover;
  transition: box-shadow 0.3s ease;
}
.home .intro img:hover {
  box-shadow: 0 0 0 6px var(--bg-black-50), 0 0 40px rgba(0,0,0,0.28);
}
.home .intro h1 {
  font-size: 38px;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  margin: 22px 0 6px;
  letter-spacing: -0.5px;
}
.home .intro p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 22px;
  color: #504e70;
}
.home .intro .social-links {
  margin-top: 25px;
}
.home .intro .social-links a {
  height: 35px;
  width: 35px;
  display: inline-block;
  text-align: center;
  line-height: 35px;
  color: #fff;
  margin: 0 4px;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.home .intro .social-links a:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/* New Home Page Styles */
.home .intro .role {
  font-size: 16px;
  font-weight: 600;
  color: var(--skin-color);
  margin: 8px 0 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.home .intro .academic-links {
  margin: 22px 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.home .intro .academic-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--bg-black-50);
  color: var(--text-black-700);
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.home .intro .academic-links a:hover {
  background-color: var(--skin-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.home .intro .location {
  font-size: 14px;
  color: var(--text-black-600);
  margin-top: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.home .intro .location i {
  margin-right: 5px;
  color: var(--skin-color);
}

.home .home-content {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.home .section-title-home {
  text-align: center;
  margin-bottom: 40px;
}

.home .section-title-home h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  margin: 0 0 14px;
  position: relative;
  display: inline-block;
}

.home .section-title-home h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 50px;
  background-color: var(--skin-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

.home .intro-text p {
  font-size: 16px;
  line-height: 28px;
  color: #504e70;
  margin-bottom: 20px;
}

.home .intro-text strong {
  color: #302e4d;
  font-weight: 600;
}

.home .research-vision {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 35px);
  background-color: var(--card-bg);
  border-radius: 12px;
  border-left: 4px solid var(--skin-color);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
}

.home .research-vision:hover {
  box-shadow: var(--card-hover-shadow);
}

.home .research-vision h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-black-900);
  margin-bottom: 16px;
  margin-top: 28px;
  font-family: "Rubik", sans-serif;
}

.home .research-vision h3:first-child {
  margin-top: 0;
}

.home .research-vision h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--skin-color);
  margin-top: 22px;
  margin-bottom: 10px;
  font-family: "Rubik", sans-serif;
}

.home .personal-note h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-black-900);
  margin-bottom: 16px;
  font-family: "Rubik", sans-serif;
}

.home .research-vision p {
  font-size: 16px;
  line-height: 28px;
  color: #504e70;
  margin-bottom: 15px;
}

.home .research-vision ul {
  margin: 20px 0;
  padding-left: 20px;
}

.home .research-vision ul li {
  font-size: 16px;
  line-height: 28px;
  color: #504e70;
  margin-bottom: 15px;
}

.home .research-vision ul li strong {
  color: #302e4d;
  font-weight: 600;
}

.home .personal-note {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 30px);
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--border-color);
}

.home .personal-note p {
  font-size: 16px;
  line-height: 28px;
  color: #504e70;
  margin-bottom: 15px;
}

.home .cv-link-home {
  text-align: center;
  margin-top: 40px;
  padding: 30px 0;
}

.home .cv-link-home .btn-home {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--skin-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 40px;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.home .cv-link-home .btn-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  filter: brightness(1.08);
}

.home .cv-link-home .btn-home i {
  margin-right: 8px;
}

.home .cv-link-home .cv-date {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #504e70;
  font-style: italic;
}

/* Research Section */
.research .research-content {
  width: 100%;
  max-width: 100%;
}

.research .research-intro {
  text-align: center;
  margin-bottom: 40px;
}

.research .research-intro p {
  font-size: 18px;
  line-height: 28px;
  color: #504e70;
  max-width: 800px;
  margin: 0 auto;
}

.research .research-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.research .research-area-item {
  padding: 32px 30px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--skin-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research .research-area-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.research .research-icon {
  font-size: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.research .research-area-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-black-900);
  margin-bottom: 12px;
  font-family: "Rubik", sans-serif;
}

.research .research-area-item p {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-black-700);
}

.research .research-skills {
  margin-top: 50px;
}

.research .research-skills h3 {
  font-size: 24px;
  font-weight: 700;
  color: #302e4d;
  margin-bottom: 30px;
  text-align: center;
  font-family: "Rubik", sans-serif;
}

.research .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.research .skill-item-research {
  padding: 20px;
}

.research .skill-item-research h5 {
  font-size: 16px;
  font-weight: 600;
  color: #302e4d;
  margin-bottom: 15px;
}

/* Talks Section */
.talks .talks-content,
.teaching .talks-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.talk-item {
  padding: 32px 36px;
  margin-bottom: 28px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--skin-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talk-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.talk-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.talk-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black-900);
  margin: 0;
  flex: 1;
  min-width: 250px;
  line-height: 1.4;
}

.talk-type {
  display: inline-block;
  padding: 6px 15px;
  background-color: #f8f9fa;
  color: #504e70;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.talk-details {
  margin: 15px 0;
}

.talk-details p {
  font-size: 14px;
  color: var(--text-black-600);
  margin: 5px 0;
}

.talk-venue {
  font-weight: 600;
}

.talk-description {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-black-700);
  margin-top: 14px;
}

.talk-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.talk-links .link-btn {
  font-size: 13px;
}

.talks .more-talks {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
}

.talks .more-talks a {
  font-weight: 600;
  text-decoration: underline;
}

/* Teaching Section */
.teaching .teaching-content {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

.teaching .talks-content {
  flex: 0 0 100%;
}

.teaching .activity-section-panel {
  border: none;
  border-left: 4px solid var(--skin-color);
  padding: clamp(18px, 3.5vw, 42px) clamp(20px, 4vw, 46px);
  margin-bottom: 24px;
}

.teaching-item {
  display: flex;
  align-items: flex-start;
  padding: 32px 36px;
  margin-bottom: 24px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--skin-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaching-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.teaching-icon {
  font-size: 40px;
  margin-right: 25px;
  min-width: 60px;
  text-align: center;
}

.teaching-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-black-900);
  margin-bottom: 12px;
  font-family: "Rubik", sans-serif;
}

.teaching-item p {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-black-700);
  margin: 0 0 6px 0;
}

.teaching-list {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0 0 0;
}

.teaching-list li {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-black-700);
  margin-bottom: 7px;
}

/* News Section */
.news .news-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.news .news-item {
  display: flex;
  gap: 30px;
  padding: 32px 36px;
  margin-bottom: 22px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--skin-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news .news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.news .news-date {
  min-width: 90px;
  max-width: 90px;
  text-align: center;
  padding: 16px 12px;
  background: linear-gradient(135deg, #f0eef8 0%, #e4e0f0 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(48,46,77,0.08);
}

.news .news-date .month {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black-900);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news .news-date .year {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-black-700);
  margin-top: 4px;
}

.news .news-body {
  flex: 1;
}

.news .news-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-black-900);
  margin-bottom: 10px;
  font-family: "Rubik", sans-serif;
  line-height: 1.4;
}

.news .news-body p {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-black-700);
  margin: 0;
}

/* Contact Section */
.contact .contact-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.contact .contact-intro {
  text-align: center;
  margin-bottom: 50px;
}

.contact .contact-intro p {
  font-size: 18px;
  line-height: 28px;
  color: #504e70;
  max-width: 700px;
  margin: 0 auto;
}

.contact .contact-info-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin: 40px 0;
}

.contact .contact-info-item {
  text-align: center;
  padding: 40px 30px;
  min-height: 220px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact .contact-info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact .contact-icon {
  font-size: 50px;
  margin-bottom: 25px;
  display: block;
}

.contact .contact-info-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #302e4d;
  margin-bottom: 18px;
  font-family: "Rubik", sans-serif;
}

.contact .contact-info-item p {
  font-size: 16px;
  line-height: 26px;
  color: #504e70;
  margin: 0;
}

.contact .contact-info-item a {
  color: #504e70;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact .contact-info-item a:hover {
  text-decoration: underline;
}

.contact .contact-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.contact .contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: #504e70;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact .contact-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.contact .contact-note {
  margin-top: 50px;
  padding: 35px 40px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border-left: 5px solid;
}

.contact .contact-note p {
  font-size: 16px;
  line-height: 28px;
  color: #504e70;
  margin-bottom: 18px;
}

.contact .contact-note p:last-child {
  margin-bottom: 0;
}

.contact .contact-note strong {
  color: #302e4d;
  font-weight: 600;
}

/* ABout Section */

.about .about-content {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.about .about-content .about-text {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.about .about-content .about-text h2 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #302e4d;
}
.about .about-content .about-text p {
  font-size: 16px;
  line-height: 25px;
  color: #504e70;
  margin: 0;
}
.about .about-content .personal-info {
  /* background-color: red; */
  -ms-flex: 0 0 60%;
  flex: 0 0 60%;
  max-width: 60%;
  margin-top: 40px;
}
.about .about-content .personal-info .info-item {
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
}
.about .about-content .personal-info .info-item p {
  font-weight: 600;
  padding: 10px 0;
  font-size: 16px;
  color: #302e4d;
  margin: 0;
  border-bottom: 1px solid #e8dfec;
}
.about .about-content .personal-info .info-item p span {
  font-weight: 400;
  color: #504e70;
  margin-left: 4px;
  display: inline-block;
}
.about .about-content .personal-info .buttons {
  margin-top: 30px;
}
.about .about-content .personal-info .buttons .btn {
  margin-right: 15px;
  margin-top: 10px;
}
.about .about-content .skills {
  /* background-color: blue; */
  -ms-flex: 0 0 40%;
  flex: 0 0 40%;
  max-width: 40%;
  margin-top: 40px;
}
.about .about-content .skills .skill-item {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.about .about-content .skills .skill-item h5 {
  line-height: 40px;
  font-weight: 600;
  font-size: 16px;
  color: #302e4d;
  text-transform: capitalize;
  margin: 0;
}
.about .about-content .skills .skill-item .progress {
  background-color: #e3e3e3;
  height: 7px;
  border-radius: 4px;
  width: 100%;
  position: relative;
}
.about .about-content .skills .skill-item {
  margin-bottom: 30px;
}
.about .about-content .skills .skill-item .progress .progress-in {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 4px;
}
.about .about-content .skills .skill-item .skill-percent {
  /* display: none; */
  line-height: 40px;
  color: #302e4d;
  position: absolute;
  right: 0;
  top: -40px;
  font-weight: 400;
}
.about .about-content .education {
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 30px;
}
.about .about-content .experience {
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 30px;
}
.about .about-content h3.title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #302e4d;
}
.about .about-content .timeline-box {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.about .about-content .timeline {
  background-color: #fdf9ff;
  padding: 30px 15px;
  border: 1px solid #d4d4e3;
  border-radius: 10px;
  width: 100%;
  position: relative;
}
.about .about-content .timeline .timeline-item {
  position: relative;
  padding-left: 37px;
  padding-bottom: 50px;
}
.about .about-content .timeline .timeline-item:last-child {
  padding-bottom: 50px;
}
.about .about-content .timeline .timeline-item::before {
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
}
.about .about-content .timeline .circle-dot {
  position: absolute;
  left: 0px;
  top: 0px;
  height: 15px;
  width: 15px;
  border-radius: 50%;
}
.about .about-content .timeline .timeline-date {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 12px;
  color: #504e70;
}
.about .about-content .timeline .timeline-date .fa {
  margin-right: 5px;
}
.about .about-content .timeline .timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: capitalize;
  color: #302e4d;
}
.about .about-content .timeline .timeline-text {
  font-size: 16px;
  line-height: 25px;
  color: #504e70;
  margin: 0;
}

/* Service Section started here */

.service .container {
  padding-bottom: 40px;
}
.service .service-item {
  -ms-flex: 0 0 33.33%;
  flex: 0 0 33.33%;
  max-width: 33.33%;
  margin-bottom: 30px;
  display: -ms-flexbox;
  display: flex;
}
.service .service-item .service-item-inner {
  background-color: #fdf9ff;
  border: 1px solid #d4d4e3;
  border-radius: 10px;
  padding: 30px 15px;
  text-align: center;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  width: 100%;
}
.service .service-item .service-item-inner:hover {
  -webkit-box-shadow: 0 0 20px rgba(48, 48, 77, 0.15);
  box-shadow: 0 0 20px rgba(48, 48, 77, 0.15);
}
.service .service-item .service-item-inner .icon {
  height: 60px;
  width: 60px;
  /* background-color: red; */
  display: block;
  margin: 0 auto 30px;
  text-align: center;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.service .service-item .service-item-inner .icon .fa {
  font-size: 40px;
  line-height: 60px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.service .service-item .service-item-inner:hover .icon .fa {
  font-size: 25px;
  color: #fff;
}
.service .service-item .service-item-inner h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #302e4d;
  font-weight: 700;
  text-transform: capitalize;
}
.service .service-item .service-item-inner p {
  font-size: 16px;
  color: #504e70;
  line-height: 25px;
  margin: 0;
}

/* Portfolio Section  */

.portfolio .container {
  padding-bottom: 40px;
}

.portfolio .portfolio-filter {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
}
.portfolio .portfolio-filter button {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-black-600);
  background-color: transparent;
  border: 2px solid transparent;
  padding: 8px 15px;
  border-radius: 30px;
  margin: 0 5px 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.portfolio .portfolio-filter button:hover {
  color: var(--skin-color);
}
.portfolio .portfolio-filter button.active {
  color: var(--skin-color);
  border-color: var(--skin-color);
  background-color: rgba(255, 255, 255, 0.05);
}
.portfolio .portfolio-item {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  margin-bottom: 30px;
  cursor: pointer;
}
.portfolio .portfolio-item.hide {
  display: none;
}
.portfolio .portfolio-item.show {
  display: block;
  animation: showItem 0.5s ease;
}
@-webkit-keyframes showItem {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes showItem {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}
.portfolio .portfolio-item-inner {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.portfolio .portfolio-item-inner:hover {
  transform: scale(1.05);
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide detailed items by default */
.portfolio-detailed-item {
  width: 100%;
  padding: 20px;
}

.detailed-content {
  background-color: var(--bg-black-50);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.detailed-content h2 {
  color: var(--skin-color);
  margin-bottom: 10px;
}

.details-text {
  margin: 20px 0;
}

.details-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Make portfolio items clearly clickable */
.portfolio-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 15px;
  transition: all 0.3s ease;
}

.portfolio-item-title h4 {
  color: #fff;
  text-align: center;
}

/* "Back to All Projects" button */
.detailed-content button {
  background-color: var(--skin-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.detailed-content button:hover {
  background-color: #fff;
  color: var(--skin-color);
}

/* Lightbox  */

.lightbox {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: none;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 30px;
}
.lightbox.open {
  display: -ms-flexbox;
  display: flex;
}
.lightbox .lightbox-content img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 500px;
  cursor: pointer;
  display: block;
  padding: 40px 0 30px;
}
.lightbox .lightbox-content {
  position: relative;
}
.lightbox.open .lightbox-content {
  animation: lightboxImage 0.5s ease;
}
@-webkit-keyframes lightboxImage {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes lightboxImage {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.lightbox .lightbox-content .lightbox-close {
  position: absolute;
  height: 40px;
  width: 40px;
  /* background-color: red; */
  top: 0;
  right: 0px;
  font-size: 32px;
  text-align: right;
  color: #fff;
  line-height: 40px;
}
.lightbox .lightbox-content .lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: space-between;
  justify-content: space-between;
  font-size: 16px;
  color: #fff;
  font-weight: 400;
  z-index: -1;
}
.lightbox .lightbox-controls .prev-item,
.lightbox .lightbox-controls .next-item {
  position: absolute;
  height: 40px;
  width: 40px;
  background-color: #fff;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  top: 50%;
  margin-top: -20px;
  z-index: 110;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.lightbox .lightbox-controls .prev-item:hover,
.lightbox .lightbox-controls .next-item:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.lightbox .lightbox-controls .prev-item:active,
.lightbox .lightbox-controls .next-item:active {
  -webkit-transform: scale(1);
  transform: scale(1);
}
.lightbox .lightbox-controls .prev-item {
  left: 30px;
}
.lightbox .lightbox-controls .next-item {
  right: 30px;
}
.lightbox .lightbox-controls .prev-item .fa,
.lightbox .lightbox-controls .next-item .fa {
  font-size: 32px;
  line-height: 40px;
}

/* Lightbox Ended */

/* Blog Section started */
.blog .container {
  padding-bottom: 40px;
}
.blog .blog-item {
  /* background-color: red; */
  -ms-flex: 0 0 33.33%;
  flex: 0 0 33.33%;
  max-width: 33.33%;
  margin-bottom: 30px;
  display: flex;
}
.blog .blog-item-inner {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d4d4e3;
  width: 100%;
  background-color: #fdf9ff;
}
.blog .blog-item-inner .blog-img {
  position: relative;
  overflow: hidden;
}
.blog .blog-item-inner .blog-img img {
  width: 100%;
  display: block;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.blog .blog-item-inner:hover .blog-img img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.blog .blog-item-inner .blog-img .blog-date {
  position: absolute;
  padding: 4px 10px;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  left: 15px;
  bottom: 15px;
}
.blog .blog-item-inner .blog-info {
  padding: 30px 15px;
}
.blog .blog-item-inner .blog-info .blog-title {
  font-size: 18px;
  font-weight: 700;
  color: #302e4d;
  text-transform: capitalize;
  margin-bottom: 10px;
}
.blog .blog-item-inner .blog-info .blog-description {
  font-size: 16px;
  line-height: 25px;
  color: #504e70;
  font-weight: 400;
  margin-bottom: 15px;
}
.blog .blog-item-inner .blog-info .blog-tags {
  font-size: 14px;
  line-height: 25px;
  color: #504e70;
  font-weight: 400;
  text-transform: capitalize;
}
.blog .blog-item-inner .blog-info .blog-tags a {
  text-decoration: none;
  font-weight: 600;
}

/* Contact Section */

.contact .contact-info-item {
  flex: 0 0 33.33%;
  -ms-flex: 0 0 33.33%;
  max-width: 33.33%;
  text-align: center;
  margin-bottom: 40px;
}
.contact .contact-info-item .icon {
  display: inline-block;
}
.contact .contact-info-item .icon .fa {
  font-size: 40px;
}
.contact .contact-info-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #302e4d;
  text-transform: capitalize;
  margin: 15px 0 5px;
}
.contact .contact-info-item p {
  font-size: 16px;
  line-height: 25px;
  color: #504e70;
  font-weight: 400;
}
.contact .contact-form {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.contact .contact-form .col-6 {
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
}
.contact .contact-form .col-12 {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
}
.contact .contact-form .form-item {
  margin-bottom: 30px;
}
.contact .contact-form .form-item .form-control {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #d4d4e3;
  padding: 10px 25px;
  font-size: 16px;
  color: #504e70;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.contact .contact-form .form-item .form-control:focus {
  -webkit-box-shadow: 0 0 20px rgba(48, 48, 77, 0.15);
  box-shadow: 0 0 20px rgba(48, 48, 77, 0.15);
}
.contact .contact-form .form-item textarea.form-control {
  height: 140px;
}
.contact .contact-form .btn {
  height: 50px;
  padding: 0 50px;
}

/* ============================
------- Dark Body
================================*/

body.dark .section {
  background-color: #151515;
}
body.dark .contact .contact-form .form-item .form-control,
body.dark .blog .blog-item-inner .blog-info,
body.dark .service .service-item .service-item-inner,
body.dark .about .about-content .timeline,
body.dark .aside {
  background-color: #222222;
}

body.dark .contact .contact-info-item h4,
body.dark .blog .blog-item-inner .blog-info .blog-title,
body.dark .portfolio .portfolio-filter button,
body.dark .service .service-item .service-item-inner h4,
body.dark .about .about-content .timeline .timeline-title,
body.dark .about .about-content h3.title,
body.dark .about .about-content .skills .skill-item h5,
body.dark .about .about-content .personal-info .info-item p,
body.dark .about .about-content .about-text h2,
body.dark .section-title h2,
body.dark .home .intro h1 {
  color: #fff;
}
body.dark .aside .copyright {
  color: #aaaaaa;
}
body.dark .aside .logo a {
  color: #ffffff;
}
body.dark .aside .nav li a {
  color: #ffffff;
}
body.dark .aside .nav li a.active {
  color: var(--skin-color);
}
body.dark .contact .contact-form .form-item .form-control,
body.dark .contact .contact-info-item p,
body.dark .blog .blog-item-inner .blog-info .blog-tags,
body.dark .blog .blog-item-inner .blog-info .blog-description,
body.dark .service .service-item .service-item-inner p,
body.dark .about .about-content .timeline .timeline-text,
body.dark .about .about-content .timeline .timeline-date,
body.dark .about .about-content .skills .skill-item .skill-percent,
body.dark .about .about-content .personal-info .info-item p span,
body.dark .about .about-content .about-text p,
body.dark .home .intro p,
body.dark .home .intro .role,
body.dark .home .intro .location,
body.dark .home .intro-text p,
body.dark .home .research-vision p,
body.dark .home .research-vision ul li,
body.dark .home .personal-note p,
body.dark .home .cv-link-home .cv-date {
  color: #f0f0f0;
}

body.dark .home .section-title-home h2,
body.dark .home .research-vision h3,
body.dark .home .personal-note h3 {
  color: #ffffff;
}

body.dark .home .research-vision h4 {
  color: #f0f0f0;
}

body.dark .home .intro-text strong,
body.dark .home .research-vision ul li strong,
body.dark .home .research-vision strong,
body.dark .home .research-vision p strong {
  color: #ffffff;
  font-weight: 700;
}

body.dark .home .intro .academic-links a {
  background-color: var(--bg-black-50);
  color: var(--text-black-700);
}

body.dark .home .intro .academic-links a:hover {
  background-color: var(--skin-color);
  color: #ffffff;
}

body.dark .home .research-vision {
  background-color: var(--card-bg);
  border-left-color: var(--skin-color);
}

body.dark .home .personal-note {
  background-color: var(--card-bg);
  border-left-color: var(--border-color);
}

body.dark .home .cv-link-home .btn-home {
  background-color: var(--skin-color);
  color: #fff;
}

body.dark .home .cv-link-home .btn-home:hover {
  filter: brightness(1.1);
}

/* Dark Mode - Research Section */
body.dark .research .research-intro p,
body.dark .research .research-area-item p,
body.dark .research .research-skills h3,
body.dark .research .skill-item-research h5 {
  color: var(--text-black-700);
}

body.dark .research .research-area-item h3 {
  color: var(--text-black-900);
}

body.dark .research .research-area-item {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

/* Dark Mode - Talk & Teaching cards (parent-agnostic) */
body.dark .talk-item {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

body.dark .talk-header h3 {
  color: var(--text-black-900);
}

body.dark .talk-venue {
  color: #ffffff;
}

body.dark .talk-type {
  background-color: #3a3a3a;
  color: #d0d0d0;
}

body.dark .talk-details p,
body.dark .talk-description,
body.dark .more-talks {
  color: var(--text-black-700);
}

body.dark .more-talks a {
  color: #90caf9;
}

body.dark .teaching-item {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

body.dark .teaching-item h3 {
  color: var(--text-black-900);
}

body.dark .teaching-item p {
  color: var(--text-black-700);
}

/* Dark mode: make plain links readable inside cards */
body.dark .publication-item a:not(.link-btn),
body.dark .talk-item a:not(.link-btn),
body.dark .teaching-item a:not(.link-btn),
body.dark .news-item a:not(.link-btn),
body.dark .teaching-body a:not(.link-btn) {
  color: var(--skin-color);
}
body.dark .publication-item a:not(.link-btn):hover,
body.dark .talk-item a:not(.link-btn):hover,
body.dark .teaching-item a:not(.link-btn):hover,
body.dark .news-item a:not(.link-btn):hover,
body.dark .teaching-body a:not(.link-btn):hover {
  color: #fff;
  text-decoration: underline;
}

body.dark .teaching-item strong {
  color: #ffffff;
}

body.dark .teaching-list li {
  color: var(--text-black-700);
}

body.dark .teaching-icon .fa {
  color: var(--skin-color);
}

/* Dark Mode - News Section */
body.dark .news .news-item {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

body.dark .news .news-date {
  background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark .news .news-date .month {
  color: #ffffff;
}

body.dark .news .news-date .year {
  color: #cccccc;
}

body.dark .news .news-body h3 {
  color: var(--text-black-900);
}

body.dark .news .news-body p {
  color: var(--text-black-700);
}

/* Dark Mode - Contact Section */
body.dark .contact .contact-intro p {
  color: #e5e5e5;
}

body.dark .contact .contact-info-item {
  background-color: #393939;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

body.dark .contact .contact-info-item:hover {
  background-color: #404040;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

body.dark .contact .contact-info-item h3 {
  color: #ffffff;
}

body.dark .contact .contact-info-item p {
  color: #e5e5e5;
}

body.dark .contact .contact-info-item a {
  color: #e5e5e5;
}

body.dark .contact .contact-social a {
  background-color: #4a4a4a;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

body.dark .contact .contact-social a:hover {
  background-color: #555;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

body.dark .contact .contact-note {
  background-color: rgba(80, 80, 80, 0.35);
  border-left-color: #666;
}

body.dark .contact .contact-note p {
  color: #e5e5e5;
}

body.dark .contact .contact-note strong {
  color: #ffffff;
}

/* Additional dark mode text visibility fixes */
body.dark .section-title h2 {
  color: #ffffff;
}

body.dark .research .research-icon,
body.dark .contact .contact-icon {
  color: #ffffff;
}

body.dark .aside,
body.dark .contact .contact-form .form-item .form-control,
body.dark .blog .blog-item-inner,
body.dark .portfolio .portfolio-item-inner,
body.dark .service .service-item .service-item-inner,
body.dark .about .about-content .timeline,
body.dark .about .about-content .personal-info .info-item p {
  border-color: #393939;
}
body.dark .contact .contact-form .form-item input::placeholder,
body.dark .contact .contact-form .form-item textarea::placeholder {
  color: #fff;
  opacity: 0.8;
}

body.dark .shadow-dark {
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* ====================================================== */
/* ---------------  Responsive Css Stared */
/* ====================================================== */

@media (max-width: 1199px) {
  .section .container {
    padding-top: 70px;
  }
  .aside .nav-toggler {
    display: -ms-flexbox;
    display: flex;
    left: 30px;
  }
  .aside .nav-toggler.open {
    left: 200px;
  }
  .aside {
    left: -270px;
  }
  .aside.open {
    left: 0px;
  }
  .section {
    left: 0;
    position: initial;
  }
  .section.active {
    animation: none;
  }
  .main-content {
    padding: 0;
  }
  .section.open {
    left: 270px;
  }
  .about .about-content .personal-info .info-item p span {
    display: block;
    margin-left: 0;
  }
}
@media (max-width: 991px) {
  .blog .blog-item,
  .portfolio .portfolio-item,
  .service .service-item {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 767px) {
  .contact .contact-form .col-6,
  .blog .blog-item,
  .service .service-item,
  .about .about-content .experience,
  .about .about-content .education,
  .about .about-content .skills,
  .about .about-content .personal-info {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .portfolio .portfolio-filter button {
    margin-bottom: 10px;
  }
}
@media (max-width: 575px) {
  .contact .contact-info-item,
  .portfolio .portfolio-item {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* ======================================================
 ---------------  Responsive Css Ended
====================================================== */

/* Publication Styles */
.portfolio-info {
  padding: 20px;
}

.portfolio-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-black-900);
}

.portfolio-info .authors {
  font-size: 14px;
  color: var(--text-black-700);
  margin-bottom: 5px;
}

.portfolio-info .venue {
  font-style: italic;
  font-size: 14px;
  color: var(--text-black-600);
  margin-bottom: 15px;
}

.publication-links {
  display: flex;
  gap: 10px;
}

.btn-small {
  padding: 5px 15px;
  font-size: 14px;
  background-color: var(--skin-color);
  color: white;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-small:hover {
  opacity: 0.8;
}

.btn-small i {
  font-size: 14px;
}

.portfolio-filter button {
  font-size: 16px;
  font-weight: 500;
  padding: 5px 15px;
  margin-right: 10px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-black-600);
  transition: all 0.3s ease;
}

.portfolio-filter button.active {
  color: var(--skin-color);
  border-color: var(--skin-color);
}

/* Additional Publication Styles */
.portfolio-info h4 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.portfolio-info .authors {
    font-size: 15px;
    color: var(--text-black-700);
    margin-bottom: 8px;
}

.portfolio-info .venue {
    font-style: italic;
    font-size: 14px;
    color: var(--text-black-600);
    margin-bottom: 15px;
}

.bibtex-citation {
    background-color: #f4f2fb;
    background-color: var(--bg-black-50);
    border: 1px solid #ddd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 14px;
    font-family: "Courier New", monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #302e4d;
    color: var(--text-black-900);
    position: relative;
    line-height: 1.6;
}

/* Success message animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Publications Section Styles */
.publications-list {
    width: 100%;
}

.publication-year-group {
    margin-top: 52px;
}

.publication-year-group:first-of-type {
    margin-top: 0;
}

.publication-year-header {
    margin: 0 0 0;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
}

.publication-year-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-black-900);
    font-family: "Rubik", sans-serif;
    margin: 0;
}

.publication-year-block {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--skin-color);
    overflow: hidden;
}

.publication-year-block .publication-item {
    margin-bottom: 0;
    padding: 24px 28px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.publication-year-block .publication-item:last-child {
    border-bottom: none;
}

.publication-year-block .publication-item:hover {
    transform: none;
    box-shadow: none;
    background-color: rgba(33, 150, 243, 0.04);
}

.publication-item {
    margin-bottom: 22px;
    padding: 24px 28px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--skin-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

/* Light theme styles */
.publications-list .publication-title h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-black-900);
    margin-bottom: 8px;
    line-height: 1.5;
}

.publications-list .publication-authors {
    font-size: 14px;
    color: var(--text-black-700);
    margin-bottom: 5px;
    line-height: 1.5;
}

.publications-list .publication-venue {
    font-style: italic;
    font-size: 14px;
    color: var(--text-black-600);
    margin-bottom: 12px;
}

/* Dark theme styles */
body.dark .publication-year-header,
body.dark .publication-year-block .publication-item {
    border-bottom-color: #3a3a3a;
}

body.dark .publication-year-block .publication-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.publication-links {
    display: flex;
    gap: 10px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    background-color: #2196f3;
    background-color: var(--skin-color);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Dark theme for BibTeX */
body.dark .bibtex-citation {
    background-color: #1e1e1e;
    border-color: #3a3a3a;
    color: #e8e8e8;
}

/* Dark mode publication cards */
body.dark .publication-item {
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-left-color: var(--skin-color);
}

/* Publication link button icons */
.link-btn i {
    margin-right: 5px;
}

.link-btn:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.portfolio-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: Add rounded corners */
}

/* News Section Styles */
.news-section {
  margin-top: 60px;
  padding-bottom: 30px;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
}

.news-item {
  background-color: var(--bg-black-100);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item header {
  padding: 20px 20px 0;
}

.news-date {
  display: inline-block;
  font-size: 14px;
  color: var(--skin-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.news-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-black-900);
  margin-bottom: 15px;
  line-height: 1.3;
}

.news-content {
  padding: 0 20px;
  flex-grow: 1;
}

.news-description {
  font-size: 16px;
  color: var(--text-black-700);
  line-height: 1.6;
}

.news-footer {
  padding: 15px 20px 20px;
  margin-top: auto;
}

.news-btn {
  font-size: 14px;
  padding: 8px 20px;
  color: #fff;
  background-color: var(--skin-color);
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-btn i {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.news-btn:hover {
  background-color: var(--skin-color);
  opacity: 0.9;
}

.news-btn:hover i {
  transform: translateX(4px);
}

/* Dark Theme Support */
body.dark .news-item {
  background-color: var(--bg-black-50);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .news-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 767px) {
  .news-container {
    grid-template-columns: 1fr;
  }
}

/* Extended News Content */
.news-extended {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

body.dark .news-extended {
  border-top-color: rgba(255,255,255,0.05);
}

.news-extended p {
  margin-bottom: 15px;
}

.news-extended h4 {
  margin: 20px 0 10px;
  font-size: 18px;
  color: var(--text-black-900);
}

.news-extended ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.news-extended li {
  margin-bottom: 8px;
}

.news-item.expanded {
  height: auto;
}

.toggle-news i {
  transition: transform 0.3s ease;
}

.news-item.expanded .toggle-news i {
  transform: rotate(180deg);
}

.news-item.expanded .toggle-news {
  background-color: transparent;
  color: var(--skin-color);
  padding-left: 0;
  padding-right: 0;
}

/* Timeline News Section */
.news-timeline {
  position: relative;
  padding: 30px 0;
}

.news-timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--skin-color);
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  height: 16px;
  width: 16px;
  background-color: var(--skin-color);
  position: absolute;
  left: 50%;
  top: 10px;
  margin-left: -8px;
  border-radius: 50%;
  z-index: 2;
}

.timeline-date {
  font-size: 14px;
  color: var(--skin-color);
  margin: 0 0 10px;
  font-weight: 600;
  position: absolute;
  right: calc(50% + 30px);
  top: 10px;
  text-align: right;
  width: calc(50% - 50px);
}

.timeline-content {
  background-color: var(--bg-black-100);
  padding: 20px;
  border-radius: 5px;
  width: calc(50% - 30px);
  position: relative;
  left: calc(50% + 30px);
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-black-900);
  margin: 0 0 10px;
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-black-700);
  margin: 0 0 15px;
}

.timeline-extended {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.timeline-extended h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text-black-900);
}

.timeline-extended ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.timeline-extended li {
  margin-bottom: 8px;
}

.timeline-item:nth-child(even) .timeline-date {
  right: auto;
  left: calc(50% + 30px);
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  left: auto;
  right: calc(50% + 30px);
}

.timeline-item .btn-small {
  cursor: pointer;
  background-color: transparent;
  color: var(--skin-color);
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.timeline-item .btn-small i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.timeline-item.expanded .timeline-extended {
  display: block;
}

.timeline-item.expanded .btn-small i {
  transform: rotate(180deg);
}

/* Dark Theme Support */
body.dark .timeline-content {
  background-color: var(--bg-black-50);
}

body.dark .timeline-extended {
  border-top-color: rgba(255,255,255,0.05);
}

/* Responsive Timeline */
@media (max-width: 767px) {
  .news-timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
    margin-left: -8px;
  }
  
  .timeline-date {
    position: relative;
    right: auto;
    left: 0;
    top: 0;
    text-align: left;
    width: 100%;
    margin-left: 50px;
    margin-bottom: 15px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    left: 60px;
  }
  
  .timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: 0;
    text-align: left;
    margin-left: 50px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    left: 60px;
    right: auto;
  }
}

/* Minimalist News Ticker with improved dark mode */
.news-ticker {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  max-height: 80vh;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
  overflow: hidden;
  transition: all 0.3s ease;
}

body.dark .news-ticker {
  background-color: rgba(36, 36, 36, 0.97); /* Darker, more opaque background */
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for definition */
}

.news-ticker-header {
  padding: 15px;
  background-color: var(--skin-color);
  color: #fff;
}

.news-ticker-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.news-ticker-items {
  overflow-y: auto;
  max-height: calc(80vh - 46px);
}

.ticker-item {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

body.dark .ticker-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* More visible separator */
}

.ticker-date {
  font-size: 12px;
  color: var(--skin-color);
  margin-bottom: 5px;
  font-weight: 500;
}

body.dark .ticker-date {
  color: var(--skin-color); /* Keep the accent color for dates */
  opacity: 0.9; /* Slightly reduce opacity for better balance */
}

.ticker-content h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-black-900);
}

body.dark .ticker-content h4 {
  color: rgba(255, 255, 255, 0.95); /* Brighter white for headings in dark mode */
}

.ticker-preview {
  font-size: 13px;
  color: var(--text-black-700);
  margin: 0 0 8px;
  line-height: 1.4;
}

body.dark .ticker-preview {
  color: rgba(255, 255, 255, 0.75); /* Light gray for better readability */
}

.ticker-details {
  display: none;
  padding-top: 8px;
  font-size: 13px;
  color: var(--text-black-700);
  line-height: 1.4;
}

body.dark .ticker-details {
  color: rgba(255, 255, 255, 0.7); /* Slightly dimmer than preview text */
}

.ticker-details p {
  margin-bottom: 8px;
}

.ticker-details ul {
  padding-left: 15px;
  margin-bottom: 8px;
}

body.dark .ticker-details ul li {
  color: rgba(255, 255, 255, 0.7); /* Ensure list items are visible */
}

.ticker-toggle {
  background: transparent;
  border: none;
  color: var(--skin-color);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 500;
}

body.dark .ticker-toggle {
  color: var(--skin-color); /* Keep accent color */
  opacity: 0.9; /* Slightly reduce opacity */
}

body.dark .ticker-toggle:hover {
  opacity: 1; /* Full opacity on hover */
}

.ticker-toggle i {
  margin-left: 5px;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.ticker-item.expanded .ticker-details {
  display: block;
}

.ticker-item.expanded .ticker-toggle i {
  transform: rotate(45deg);
}

/* Toggle button to show/hide the entire ticker */
.ticker-collapse-btn {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 60px;
  background-color: var(--skin-color);
  border: none;
  border-radius: 5px 0 0 5px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .ticker-collapse-btn {
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.5); /* Add shadow for definition */
}

.news-ticker.collapsed {
  right: -300px;
}

/* Custom scrollbar for dark mode */
body.dark .news-ticker-items::-webkit-scrollbar {
  width: 6px;
}

body.dark .news-ticker-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .news-ticker-items::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

body.dark .news-ticker-items::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .news-ticker {
    width: 250px;
  }
}

/* Enhanced LuxVoice Project Styling */
.luxvoice-featured {
  width: 100%;
  max-width: 100%;
}

.luxvoice-featured .portfolio-item-inner {
  overflow: hidden;
}

.overlay-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.overlay-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures the image covers the area without distortion */
  transition: transform 0.5s ease;
}

.luxvoice-featured:hover .overlay-container img {
  transform: scale(1.05);
}

.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
  color: #fff;
  transition: all 0.3s ease;
}

.overlay-content h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.overlay-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.project-description {
  max-width: 80%;
  line-height: 1.6;
}

.project-btn {
  display: inline-block;
  background-color: var(--skin-color);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.project-btn:hover {
  background-color: #fff;
  color: var(--skin-color);
}

/* View control for detailed vs regular views */
.detailed-view {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .overlay-content {
    padding: 20px;
  }
  
  .overlay-content h4 {
    font-size: 20px;
  }
  
  .project-description {
    max-width: 100%;
    font-size: 14px;
  }
}

/* Portfolio Detailed View Styles */
.portfolio-items {
  position: relative;
}

.portfolio-item {
  position: relative;
  padding: 15px;
  overflow: hidden;
  transition: all 0.5s ease;
}

.portfolio-item-inner {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  border: 4px solid var(--bg-black-100);
}

.portfolio-item-inner:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.portfolio-img img {
  width: 100%;
  display: block;
  transition: all 0.5s ease;
}

.portfolio-item-inner:hover .portfolio-img img {
  transform: scale(1.1);
}

/* Project title overlay on portfolio items */
.portfolio-item-title {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  text-align: center;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.portfolio-item-inner:hover .portfolio-item-title {
  transform: translateY(0);
}

/* Hide detailed items by default */
.portfolio-detailed-item {
  display: none; /* Hidden by default */
  width: 100%;
  margin-bottom: 30px;
}

.detailed-content {
  background-color: var(--bg-black-50);
  border: 1px solid var(--bg-black-100);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 30px;
}

.detailed-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 30px;
  margin-bottom: 30px;
}

.detailed-image {
  flex: 0 0 30%;
  padding-right: 30px;
}

.detailed-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.detailed-description {
  flex: 0 0 70%;
}

.detailed-description h3 {
  font-size: 24px;
  color: var(--skin-color);
  margin-bottom: 15px;
}

.detailed-description .tagline {
  font-size: 16px;
  color: var(--text-black-600);
  font-style: italic;
  margin-bottom: 15px;
}

.full-project-description {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 25px;
}

.description-section {
  margin-bottom: 25px;
}

.description-section h4 {
  color: var(--skin-color);
  margin-bottom: 10px;
}

.description-section p,
.description-section ul {
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .detailed-layout {
    grid-template-columns: 100%;
  }
}

/* Show/Hide Button Styling */
.show-hide-container {
  margin: 20px 0;
  text-align: center;
}

.show-hide-btn {
  background-color: var(--skin-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.show-hide-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.show-hide-btn:hover {
  background-color: var(--skin-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animation for the details section */
.full-project-description {
  transition: all 0.5s ease;
}

/* Enhanced Project Content Styling */
.project-summary {
  margin-bottom: 20px;
}

.project-highlights {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.project-highlights h4 {
  margin-bottom: 15px;
  color: var(--skin-color);
}

.project-highlights ul {
  list-style: none;
  padding-left: 0;
}

.project-highlights li {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.highlight-label {
  font-weight: bold;
  min-width: 100px;
  color: var(--skin-color);
}

.project-highlights .publications-list {
  padding-left: 20px;
}

.project-highlights .publications-list li {
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-highlights .publications-list em {
  font-style: italic;
}

.tagline {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-black-600);
}

/* Ensure proper contrast in dark mode */
body.dark .project-highlights {
  background-color: rgba(255, 255, 255, 0.08);
}

body.dark .highlight-label {
  color: var(--skin-color);
}

body.dark .tagline {
  color: #cccccc;
}

body.dark .project-highlights .publications-list em {
  color: #cccccc;
}

/* Improve spacing in detailed layout */
.detailed-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 991px) {
  .detailed-layout {
    grid-template-columns: 100%;
  }
}

/* Make portfolio items clickable */
.portfolio-item {
  cursor: pointer;
  position: relative;
}

.view-project-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--skin-color);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.portfolio-item:hover .view-project-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ensure detailed items are visible when selected */
.portfolio-detailed-item {
  width: 100%;
  max-width: 100%;
}

/* Ensure details are visible */
.portfolio-detailed-item .detailed-content {
  background-color: var(--bg-black-50);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* Fix navigation display */
.project-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Portfolio item description that appears below the image */
.portfolio-item-description {
  background-color: var(--bg-black-50);
  border-radius: 0 0 10px 10px;
  padding: 20px;
  margin-top: -10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item-description h4 {
  color: var(--skin-color);
  margin-bottom: 10px;
  font-size: 18px;
}

.portfolio-item-description p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more-btn {
  display: inline-block;
  background-color: var(--skin-color);
  color: #fff;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background-color: #fff;
  color: var(--skin-color);
}

/* Make the portfolio item have padding at the bottom */
.portfolio-item {
  margin-bottom: 30px;
  cursor: pointer;
}

/* Adjust the inner container to accommodate the description */
.portfolio-item-inner {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

/* Project details styling */
.project-details {
  width: 100%;
  padding: 20px;
  margin-top: 30px;
}

.project-details-content {
  background-color: var(--bg-black-50);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.project-image {
  width: 100%;
  text-align: center;
  padding: 20px;
}

.project-image img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

.project-text {
  padding: 20px;
}

.project-text h3 {
  color: var(--skin-color);
  margin-bottom: 15px;
  font-size: 24px;
}

.project-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.back-to-all-btn {
  background-color: var(--skin-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.back-to-all-btn:hover {
  background-color: #fff;
  color: var(--skin-color);
}

/* Make portfolio items clickable */
.portfolio-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

/* =============================================
   POLISH — scholar link, icon colours, misc
   ============================================= */

/* Scholar / Google Scholar link in publications */
.scholar-link {
  text-align: center;
  margin-bottom: 40px;
}

.scholar-link .link-btn {
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 30px;
}

/* End-of-list full publications note */
.pub-full-list-note {
  margin-top: 40px;
  padding: 24px 28px;
  background-color: var(--card-bg);
  border-radius: 10px;
  border-left: 4px solid var(--skin-color);
  box-shadow: var(--card-shadow);
}

.pub-full-list-note p {
  font-size: 15px;
  color: var(--text-black-700);
  margin-bottom: 0;
}

body.dark .pub-full-list-note p {
  color: var(--text-black-700);
}

/* Publication profile links (Scholar / ResearchGate / ORCiD) */
.pub-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
  align-items: center;
}

.pub-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--skin-color);
  color: var(--skin-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  background-color: transparent;
  letter-spacing: 0.2px;
}

.pub-profile-btn:hover {
  background-color: var(--skin-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}

body.dark .pub-profile-btn {
  color: var(--skin-color);
  border-color: var(--skin-color);
}

body.dark .pub-profile-btn:hover {
  background-color: var(--skin-color);
  color: #fff;
}

/* Research section icon colours inherit skin */
.research .research-icon .fa,
.teaching .teaching-icon .fa {
  color: #2196f3;
  color: var(--skin-color);
}

/* Section title underline bars inherit skin */
.section-title h2::before,
.section-title h2::after {
  background-color: #2196f3;
  background-color: var(--skin-color);
}

/* Make section-title text readable in dark mode */
body.dark .section-title h2 {
  color: #ffffff;
}

/* Publication links area spacing */
.publication-links {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Teaching icon size */
.teaching .teaching-icon {
  font-size: 32px;
  margin-right: 22px;
  min-width: 50px;
  text-align: center;
  margin-top: 4px;
}

/* Improve talk-type badge */
.talks .talk-type {
  white-space: nowrap;
}

/* Section bg in dark mode - ensure all card sections use var */
body.dark .section {
  background-color: #151515;
  background-color: var(--bg-black-900);
}

/* Project details text in dark mode */
body.dark .project-text h3 {
  color: #2196f3;
  color: var(--skin-color);
}

body.dark .project-text p {
  color: var(--text-black-700);
}

body.dark .project-text .link-btn {
  color: #ffffff !important;
}

/* Responsive tweaks for the new card layout */
@media (max-width: 767px) {
  .news .news-item {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }

  .news .news-date {
    min-width: auto;
    max-width: none;
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .news .news-date .month,
  .news .news-date .year {
    display: inline;
    font-size: 16px;
  }

  .talks .talk-item,
  .teaching .teaching-item,
  .publication-item {
    padding: 20px 18px;
  }

  .teaching .teaching-item {
    flex-direction: column;
  }

  .teaching .teaching-icon {
    margin-right: 0;
    margin-bottom: 14px;
  }
}

/* =============================================
   SUBSECTION HEADINGS (within merged sections)
   ============================================= */
.subsection-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  margin: 0 0 28px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.subsection-heading .fa {
  color: var(--skin-color);
  font-size: 20px;
}

.teaching .subsection-heading:not(:first-of-type) {
  margin-top: 48px;
}

/* teaching-body wrapper inside teaching-item */
.teaching .teaching-item .teaching-body {
  flex: 1;
}

.teaching .teaching-item .teaching-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-black-900);
  margin-bottom: 10px;
  font-family: "Rubik", sans-serif;
}

.teaching .teaching-item .teaching-body p {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-black-700);
  margin: 0 0 6px 0;
}

/* =============================================
   RESPONSIVE CLAMP PADDING — bigger on desktop,
   safe on mobile, no layout break
   ============================================= */
.publication-item,
.talk-item,
.teaching .teaching-item,
.news .news-item {
  padding: clamp(18px, 3.5vw, 42px) clamp(20px, 4vw, 46px);
}

/* Keep news item flex gap responsive too */
.news .news-item {
  gap: clamp(16px, 3vw, 32px);
}

/* Subsection heading dark mode */
body.dark .subsection-heading {
  color: var(--text-black-900);
  border-bottom-color: var(--border-color);
}

body.dark .teaching-item .teaching-body h3 {
  color: var(--text-black-900);
}

body.dark .teaching-item .teaching-body p {
  color: var(--text-black-700);
}

body.dark .teaching-item .teaching-body strong {
  color: #ffffff;
}

body.dark .teaching-item .teaching-body .teaching-list li {
  color: var(--text-black-700);
}

/* =============================================
   PROFESSIONAL POLISH OVERRIDES
   ============================================= */

/* Hide template controls on production portfolio */
.style-switcher {
  display: none !important;
}

/* Ensure section title and generic text follow theme variables */
.section-title h2,
.home .intro-text strong,
.home .research-vision ul li strong {
  color: var(--text-black-900);
}

.home .intro-text p,
.home .research-vision p,
.home .research-vision ul li,
.home .personal-note p {
  color: var(--text-black-700);
}

/* Hero highlights card */
.home .career-highlights {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 32px);
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--skin-color);
}

.home .career-highlights h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-black-900);
  margin-bottom: 14px;
  font-family: "Rubik", sans-serif;
}

.home .career-highlights ul {
  margin: 0;
  padding-left: 20px;
}

.home .career-highlights li {
  color: var(--text-black-700);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.home .career-highlights li:last-child {
  margin-bottom: 0;
}

/* Contact cards use unified card variables for both themes */
.contact .contact-info-item {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.contact .contact-info-item:hover {
  box-shadow: var(--card-hover-shadow);
}

.contact .contact-info-item h3 {
  color: var(--text-black-900);
}

.contact .contact-info-item p,
.contact .contact-info-item a,
.contact .contact-note p {
  color: var(--text-black-700);
}

.contact .contact-social a {
  background-color: var(--bg-black-50);
  color: var(--text-black-700);
}

.contact .contact-social a:hover {
  background-color: var(--skin-color);
  color: #fff;
}

.contact .contact-note {
  background-color: var(--card-bg);
  border-left-color: var(--skin-color);
  box-shadow: var(--card-shadow);
}

/* Sidebar readability for longer labels */
.aside .nav li a {
  letter-spacing: 0.1px;
  font-size: 15px;
}

/* Keep external profile buttons readable in both themes */
.pub-profile-btn {
  background-color: transparent;
}

body.dark .pub-profile-btn {
  background-color: rgba(255, 255, 255, 0.02);
}

@media (max-width: 767px) {
  .home .career-highlights {
    padding: 18px;
  }
}

/* =============================================
   RESEARCH DIRECTIONS — 3-col card grid
   ============================================= */
.research-tagline {
  font-size: 16px;
  color: var(--text-black-700);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 820px;
}

.research-directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 20px;
}

.research-direction-card {
  background-color: var(--card-bg);
  border-radius: 14px;
  padding: 32px 26px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--skin-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-direction-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.research-direction-card .rd-icon {
  font-size: 38px;
  color: var(--skin-color);
  margin-bottom: 18px;
  text-align: center;
}

.research-direction-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  margin-bottom: 12px;
  line-height: 1.4;
}

.research-direction-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-black-700);
  margin: 0;
}

@media (max-width: 991px) {
  .research-directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .research-directions-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   ACTIVITIES — roles grid, activity list
   ============================================= */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 10px;
}

.role-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--skin-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.role-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  margin-bottom: 8px;
}

.role-item p {
  font-size: 14px;
  color: var(--text-black-700);
  margin-bottom: 10px;
  line-height: 1.5;
}

.role-item a {
  color: var(--skin-color);
  text-decoration: none;
}

.role-item a:hover {
  text-decoration: underline;
}

.role-item .role-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--skin-color);
  letter-spacing: 0.3px;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  padding: 13px 16px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-black-700);
  background-color: var(--card-bg);
  border-radius: 8px;
  border-left: 3px solid var(--skin-color);
  box-shadow: var(--card-shadow);
}

.activity-list li a {
  color: var(--skin-color);
  text-decoration: none;
}

.activity-list li a:hover {
  text-decoration: underline;
}

.activity-section-panel {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.activity-list.in-panel li {
  padding: 12px 0;
  margin-bottom: 0;
  background: transparent;
  border-left: none;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-list.in-panel li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-list.in-panel li:first-child {
  padding-top: 0;
}

.activity-list.in-panel .activity-content h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
}

.activity-list.in-panel .activity-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-black-700);
}

.grant-funding {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-black-700);
}

.activity-entry-list {
  display: flex;
  flex-direction: column;
}

.activity-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-entry:first-child {
  padding-top: 0;
}

.activity-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.activity-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-entry-head h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  margin: 0;
  line-height: 1.4;
}

.activity-entry-head h4 .fa {
  color: var(--skin-color);
  margin-right: 8px;
}

.activity-tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--skin-color);
  background-color: rgba(33, 150, 243, 0.09);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.activity-meta {
  font-size: 13px;
  color: var(--text-black-700);
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.activity-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-black-700);
  margin: 10px 0 0;
}

.activity-entry .clean-list,
.activity-entry .teaching-list {
  margin: 10px 0 0;
}

.activity-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.dark .activity-tag {
  background-color: rgba(33, 150, 243, 0.16);
}

.activity-section-panel .feature-grid {
  margin: 0;
  gap: 0;
  display: block;
}

.activity-section-panel .feature-card {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.activity-section-panel .feature-card:first-child {
  padding-top: 0;
}

.activity-section-panel .feature-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

body.dark .activity-section-panel {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .activity-list.in-panel li,
body.dark .activity-entry,
body.dark .activity-section-panel .feature-card {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.service-subheading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  margin: 28px 0 14px 0;
}

.service-subheading:first-of-type {
  margin-top: 0;
}

body.dark .service-subheading {
  color: var(--text-black-900);
}

/* Collaborative Network / Partners Grid */
.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 20px 16px;
  align-items: center;
  margin-top: 24px;
  padding: 12px 0;
}

.collaborator-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  min-height: 64px;
  background-color: #ffffff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.collaborator-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.collaborator-logo img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.collaborator-logo:hover img {
  opacity: 1;
}

body.dark .collaborator-logo {
  background-color: #ffffff;
}

body.dark .collaborator-logo:hover {
  box-shadow: 0 4px 16px rgba(255,255,255,0.1);
}

@media (max-width: 767px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   CONNECT FOOTER
   ============================================= */
.connect-footer {
  width: 100%;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 40px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
}

.connect-footer h3 {
  font-size: 28px;
  font-weight: 700;
  font-family: "Rubik", sans-serif;
  color: var(--text-black-900);
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.connect-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--bg-black-50);
  color: var(--text-black-700);
  font-size: 22px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.connect-links a:hover {
  background-color: var(--skin-color);
  color: #fff;
  transform: translateY(-4px);
}

.connect-copy {
  font-size: 14px;
  color: var(--text-black-600);
  margin: 0;
}


/* =============================================
   PROJECT CARDS — Bereket-style image + body
   ============================================= */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.project-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--bg-black-50);
  flex-shrink: 0;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-card-image.is-logo img {
  object-fit: contain;
  padding: 20px;
  max-height: 100%;
  width: 100%;
}

.project-card-body {
  padding: 26px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: "Rubik", sans-serif;
  color: var(--text-black-900);
  margin: 0 0 12px;
  line-height: 1.3;
}

.project-card-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-black-700);
  margin: 0;
  flex: 1;
}

.project-card-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 991px) {
  .project-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .project-cards-grid {
    grid-template-columns: 1fr;
  }

  .project-card-image {
    height: 200px;
  }
}

/* Projects-first layout: keep cards in one clean row (desktop) */
.research .portfolio-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.research .portfolio-items .portfolio-item {
  max-width: 100%;
  flex: initial;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 991px) {
  .research .portfolio-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .research .portfolio-items {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   2026 EDITORIAL PAGE SYSTEM
   ============================================= */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin: 0 0 72px;
  padding: clamp(42px, 7vw, 84px);
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(33, 150, 243, 0.28), transparent 34%),
    linear-gradient(135deg, #10141b 0%, #171e29 100%);
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.page-hero.compact-hero {
  display: block;
  padding-block: clamp(44px, 7vw, 76px);
}

.page-hero .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero h1 {
  margin: 10px 0 20px;
  max-width: 900px;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -1.8px;
  text-transform: uppercase;
}

.page-hero.compact-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero h2 {
  margin-bottom: 18px;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  text-align: left;
}

.page-hero blockquote {
  max-width: 760px;
  margin: 18px 0 0;
  padding-left: 20px;
  border-left: 4px solid var(--skin-color);
  color: rgba(255, 255, 255, 0.95);
  font-family: "Rubik", sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  color: var(--skin-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-profile {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-profile > img {
  width: min(100%, 260px);
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.hero-profile .academic-links {
  justify-content: center;
  margin-top: 22px;
}

.hero-profile .academic-links a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-actions,
.cv-link-home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid var(--skin-color);
  border-radius: 999px;
  background: var(--skin-color);
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(33, 150, 243, 0.22);
}

.btn-home.btn-secondary {
  border-color: var(--border-color);
  background: transparent;
  color: var(--text-black-900) !important;
}

.page-hero .btn-home.btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.content-block,
.prose-section,
.research-track,
.project-detail,
.statement-panel {
  margin-bottom: 72px;
}

.content-block,
.prose-section {
  padding-inline: clamp(4px, 2vw, 20px);
}

.block-heading {
  max-width: 700px;
  margin-bottom: 30px;
}

.block-heading h2,
.prose-section h2,
.statement-panel h2,
.research-track h2,
.project-detail h2,
.split-block h2 {
  margin: 8px 0 18px;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.7px;
}

.prose-section {
  max-width: 880px;
}

.prose-section p,
.split-block p,
.statement-panel p,
.research-track p,
.project-detail p {
  margin-bottom: 16px;
  color: var(--text-black-700);
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.prose-section blockquote,
.statement-panel blockquote {
  margin: 30px 0 0;
  padding-left: 24px;
  border-left: 4px solid var(--skin-color);
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.statement-panel {
  padding: clamp(34px, 6vw, 70px);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.statement-panel.final-statement {
  background:
    radial-gradient(circle at 100% 0, rgba(33, 150, 243, 0.25), transparent 34%),
    #111821;
}

.statement-panel.final-statement h2,
.statement-panel.final-statement p {
  color: #fff;
}

.statement-panel.final-statement p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-grid {
  display: grid;
  gap: 24px;
}

.feature-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.feature-card h3 {
  margin: 8px 0 14px;
  color: var(--text-black-900);
  font-family: "Rubik", sans-serif;
  font-size: 21px;
  line-height: 1.35;
}

.feature-card h4 {
  margin-bottom: 12px;
  color: var(--skin-color);
  font-size: 15px;
  line-height: 1.5;
}

.feature-card p {
  margin-bottom: 16px;
  color: var(--text-black-700);
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}

.card-number,
.news-label {
  color: var(--skin-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--skin-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.text-link:hover i {
  transform: translateX(3px);
}

.selected-work-list {
  margin-bottom: 28px;
  border-top: 1px solid var(--border-color);
}

.selected-work-list article {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr) minmax(220px, 0.8fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.selected-work-list span {
  color: var(--skin-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.selected-work-list h3 {
  color: var(--text-black-900);
  font-size: 17px;
  line-height: 1.5;
}

.selected-work-list p {
  color: var(--text-black-700);
  font-size: 14px;
  line-height: 1.65;
}

.split-block {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
  padding-block: 18px;
}

.principles-grid,
.process-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.principles-grid > span,
.process-list > span {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-black-700);
  font-size: 13px;
  font-weight: 600;
}

.principles-grid.expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.principles-grid.expanded article,
.principles-grid.expanded > span {
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
}

.principles-grid.expanded h3 {
  margin-bottom: 8px;
  color: var(--text-black-900);
  font-size: 16px;
}

.principles-grid.expanded p {
  color: var(--text-black-700);
  font-size: 14px;
  line-height: 1.6;
}

.research-track {
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.track-heading {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.track-number {
  color: var(--skin-color);
  font-family: "Rubik", sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.track-heading h2 {
  margin-top: 6px;
  text-transform: uppercase;
}

.track-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: clamp(24px, 4vw, 44px);
}

.track-grid h3,
.project-detail h3 {
  margin: 16px 0 10px;
  color: var(--text-black-900);
  font-size: 16px;
  line-height: 1.45;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.clean-list li {
  margin-bottom: 8px;
  color: var(--text-black-700);
  font-size: 14px;
  line-height: 1.55;
}

.compact-list {
  margin-top: 14px;
}

.track-objective {
  margin: 28px 0 0 !important;
  padding: 18px 20px;
  border-left: 4px solid var(--skin-color);
  background: var(--bg-black-50);
}

.project-detail {
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.project-detail.flagship {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 58px);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 100%;
  min-height: clamp(190px, 20vw, 230px);
}

.project-visual img {
  width: 100%;
  height: clamp(190px, 20vw, 230px);
  max-height: clamp(190px, 20vw, 230px);
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.project-visual.is-logo {
  height: clamp(190px, 20vw, 230px);
  min-height: clamp(190px, 20vw, 230px);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.project-visual.is-logo img {
  height: 100%;
  max-height: none;
  min-height: 0;
  padding: 20px;
  border-radius: 0;
  background: transparent;
}

.project-visual.is-logo-wide img {
  padding: 22px 12px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.project-meta span {
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--bg-black-50);
  color: var(--text-black-700);
  font-size: 12px;
  line-height: 1.4;
}

.project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 18px;
}

.secondary-link {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-black-900) !important;
}

.featured-publication {
  border-left-width: 6px;
}

.impact-panel {
  margin-top: 48px;
}

.grant-grid > span {
  border-radius: 10px;
}

.modern-contact-form {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.modern-contact-form .form-item {
  margin: 0;
}

.modern-contact-form .form-item.full-width {
  grid-column: 1 / -1;
}

.modern-contact-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-black-900);
  font-size: 13px;
  font-weight: 700;
}

.modern-contact-form .form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-black-100);
  color: var(--text-black-900);
}

.modern-contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-note,
.footer-tagline {
  margin-top: 12px;
  color: var(--text-black-600);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 22px auto 28px;
}

.footer-nav a {
  color: var(--text-black-700);
  font-size: 13px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--skin-color);
}

body.dark .btn-home.btn-secondary,
body.dark .secondary-link {
  color: #fff !important;
}

@media (max-width: 1199px) {
  .section {
    display: none;
    position: relative;
    min-height: 100vh;
  }

  .section.active {
    display: block;
  }
}

@media (max-width: 991px) {
  .page-hero,
  .project-detail.flagship {
    grid-template-columns: 1fr;
  }

  .hero-profile {
    order: -1;
  }

  .hero-profile > img {
    width: 190px;
  }

  .feature-grid.three-columns,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .selected-work-list article {
    grid-template-columns: 120px 1fr;
  }

  .selected-work-list p {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .section {
    padding-inline: 18px;
  }

  .page-hero {
    margin-bottom: 48px;
    padding: 34px 24px;
    border-radius: 16px;
  }

  .page-hero h1 {
    letter-spacing: -0.8px;
  }

  .feature-grid.two-columns,
  .split-block,
  .project-columns,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .modern-contact-form .form-item.full-width {
    grid-column: auto;
  }

  .selected-work-list article {
    display: block;
  }

  .selected-work-list h3 {
    margin: 8px 0;
  }

  .content-block,
  .prose-section,
  .research-track,
  .project-detail,
  .statement-panel {
    margin-bottom: 48px;
  }

  .research-track,
  .project-detail,
  .statement-panel {
    padding: 26px 22px;
  }

  .track-heading {
    display: block;
  }

  .track-number {
    display: inline-block;
    margin-bottom: 12px;
  }
}

/* Justified narrative text (Home + About + Projects + News) */
#home .page-hero .hero-copy p,
#home .page-hero blockquote,
#home .split-block p,
#about .page-hero .hero-copy p,
#about .prose-section p,
#about .about-grid .feature-card p,
#projects .page-hero .hero-copy p,
#projects .prose-section p,
#projects .project-detail .project-copy > p,
#projects .project-columns p,
#projects .content-block .feature-card p,
#news .news-body p {
  text-align: justify;
  hyphens: auto;
  text-wrap: pretty;
}
