@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

section {
  padding: 100px 0;
}

.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}

.about,
.services,
.skills,
.teams,
.contact,
footer {
  font-family: "Poppins", sans-serif;
}

.about .about-content,
.services .serv-content,
.skills .skills-content,
.contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: "Ubuntu", sans-serif;
}

section .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #111;
  transform: translateX(-50%);
}

section .title::after {
  position: absolute;
  bottom: -8px;
  left: 50%;
  font-size: 20px;
  color: crimson;
  padding: 0 5px;
  background: #fff;
  transform: translateX(-50%);
}

.navbar {
  position: fixed;
  width: 100%;
  z-index: 999;
  padding: 30px 0;
  font-family: "Ubuntu", sans-serif;
  transition: all 0.3s ease;
}

.navbar.sticky {
  padding: 15px 0;
  background: crimson;
}

.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo a {
  color: #fff;
  font-size: 35px;
  font-weight: 600;
}

.navbar .logo a span {
  color: crimson;
  transition: all 0.3s ease;
}

.navbar.sticky .logo a span {
  color: #fff;
}

.navbar .menu li {
  list-style: none;
  display: inline-block;
}

.navbar .menu li a {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  transition: color 0.3s ease;
}

.navbar .menu li a:hover {
  color: crimson;
}

.navbar.sticky .menu li a:hover {
  color: #fff;
}

/* ── Navbar search trigger ────────────────────────────── */
.search-trigger {
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 16px;
  padding: 4px 6px; margin-left: 18px;
  display: flex; align-items: center;
  transition: color .2s;
  flex-shrink: 0;
}
.search-trigger:hover { color: crimson; }
.navbar.sticky .search-trigger { color: #fff; }
.navbar.sticky .search-trigger:hover { color: rgba(255,255,255,0.7); }

/* ── Search overlay ───────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 90px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-modal { width: 100%; max-width: 660px; margin: 0 20px; }

.search-input-row {
  display: flex; align-items: center; gap: 12px;
  background: #1a1a2e; border: 2px solid crimson;
  border-radius: 10px; padding: 14px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.search-input-row > i { color: crimson; font-size: 15px; flex-shrink: 0; }
.search-input-row input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 15.5px; font-family: 'Ubuntu', sans-serif;
}
.search-input-row input::placeholder { color: #4a4a6a; }
#searchClose {
  background: none; border: none; cursor: pointer;
  color: #555; font-size: 15px; padding: 2px;
  transition: color .2s; flex-shrink: 0;
}
#searchClose:hover { color: crimson; }

.search-results {
  background: #13132a;
  border: 1px solid rgba(220,20,60,0.2); border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 430px; overflow-y: auto;
}
.search-result {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: background .14s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.focused { background: rgba(220,20,60,0.1); }
.sr-icon {
  width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0;
  background: rgba(220,20,60,0.12); border: 1px solid rgba(220,20,60,0.28);
  display: flex; align-items: center; justify-content: center;
  color: crimson; font-size: 12px;
}
.sr-body { flex: 1; min-width: 0; }
.sr-title { font-size: 13.5px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub   { font-size: 11.5px; color: #666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-type  {
  font-size: 10px; font-weight: 700; color: crimson; letter-spacing: .4px;
  text-transform: uppercase; background: rgba(220,20,60,0.1);
  padding: 2px 9px; border-radius: 10px; white-space: nowrap; flex-shrink: 0;
}
.search-empty { padding: 28px; text-align: center; color: #555; font-size: 14px; }
.search-empty strong { color: #888; }

@media (max-width: 947px) {
  .search-trigger { margin-left: 0; margin-right: 8px; }
  .search-overlay { padding-top: 70px; }
}

/* ── Dropdown navigation ──────────────────────────────── */
.navbar .menu li.has-dropdown { position: relative; }
.navbar .menu li.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  min-width: 190px;
  border-top: 2px solid crimson;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1000;
  padding: 4px 0;
  list-style: none;
}
.navbar .menu li.has-dropdown:hover > .dropdown { display: block; }
.navbar .menu li.has-dropdown > .dropdown > li { display: block; }
.navbar .menu li.has-dropdown > .dropdown > li > a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: #ccc;
  margin: 0;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.navbar .menu li.has-dropdown > .dropdown > li > a:hover {
  color: #fff;
  background: rgba(220, 20, 60, 0.15);
}
.navbar.sticky .menu li.has-dropdown > .dropdown {
  background: crimson;
  border-top-color: rgba(255,255,255,0.3);
}
.navbar.sticky .menu li.has-dropdown > .dropdown > li > a { color: rgba(255,255,255,0.85); }
.navbar.sticky .menu li.has-dropdown > .dropdown > li > a:hover { background: rgba(0,0,0,0.15); color: #fff; }

/* ── Nested submenu ───────────────────────────────────── */
.navbar .menu li.has-submenu { position: relative; }
.navbar .menu li.has-submenu > .submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #111;
  min-width: 160px;
  border-top: 2px solid crimson;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1001;
  padding: 4px 0;
  list-style: none;
}
.navbar .menu li.has-submenu:hover > .submenu { display: block; }
.navbar .menu li.has-submenu > .submenu > li { display: block; }
.navbar .menu li.has-submenu > .submenu > li > a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: #ccc;
  margin: 0;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.navbar .menu li.has-submenu > .submenu > li > a:hover {
  color: #fff;
  background: rgba(220, 20, 60, 0.15);
}
.navbar.sticky .menu li.has-submenu > .submenu {
  background: crimson;
  border-top-color: rgba(255,255,255,0.3);
}
.navbar.sticky .menu li.has-submenu > .submenu > li > a { color: rgba(255,255,255,0.85); }
.navbar.sticky .menu li.has-submenu > .submenu > li > a:hover { background: rgba(0,0,0,0.15); color: #fff; }

.menu-btn {
  color: #fff;
  font-size: 23px;
  cursor: pointer;
  display: none;
}

.scroll-up-btn {
  position: fixed;
  height: 45px;
  width: 42px;
  background: crimson;
  right: 30px;
  bottom: 10px;
  text-align: center;
  line-height: 45px;
  color: #fff;
  z-index: 9999;
  font-size: 30px;
  border-radius: 6px;
  border-bottom-width: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-up-btn.show {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}

.scroll-up-btn:hover {
  filter: brightness(90%);
}


.home {
  display: flex;
  /* background: url("images/banner.jpg") no-repeat center; */
  height: 100vh;
  color: #fff;
  min-height: 500px;
  background-size: cover;
  /* background-attachment: fixed; */
  font-family: "Ubuntu", sans-serif;
}


.home .max-width {
  width: 100%;
  display: flex;
}

.home .max-width .row {
  margin-right: 0;
}

.home .home-content .text-1 {
  font-size: 27px;
}

.home .home-content .text-4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  width: 40%;
  margin-left: 70%;
  margin-top: -17%;
  margin-right: 10%;
}

.home .home-content .text-2 {
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
}

.home .home-content .text-3 {
  font-size: 40px;
  margin: 5px 0;
}

.home .home-content .text-3 span {
  color: #dc143c;
  font-weight: 500;
}

.home .home-content a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 25px;
  padding: 12px 36px;
  margin-top: 20px;
  font-weight: 400;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}

.home .home-content a:hover {
  color: crimson;
  background: none;
}

.home .text-4 .full-text {
  display: inline;
}

.home .text-4 .mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .home .home-content .text-2 {
    font-size: 55px;
  }

  .home .home-content .text-3 {
    font-size: 35px;
  }

  .home .home-content .text-4 {
    font-size: 16px;
    width: 100%;
    margin-left: 0;
    margin-top: 5%;
  }

  .home .home-content a {
    font-size: 22px;
    padding: 10px 30px;
  }

  .home .text-4 .full-text {
    display: none;
  }

  .home .text-4 .mobile-text {
    display: inline;
  }
}

@media (max-width: 480px) {
  .home .home-content .text-2 {
    font-size: 45px;
  }

  .home .home-content .text-3 {
    font-size: 28px;
  }

  .home .home-content .text-4 {
    font-size: 14px;
    width: 100%;
    margin-left: 0;
    margin-top: 5%;
  }

  .home .home-content a {
    font-size: 20px;
    padding: 8px 25px;
  }

  .home .text-4 .full-text {
    display: none;
  }

  .home .text-4 .mobile-text {
    display: inline;
  }
}

.blogs .title::after {
  content: "hover or slide";
}

.blogs .blogs-content .left {
  width: 45%;
}

.blogs .blogs-content .left img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 6px;
}

.blogs .blogs-content .right {
  width: 55%;
}

.blogs .blogs-content .right .text {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blogs .blogs-content .right .text span {
  color: crimson;
}

.blogs .blogs-content .right p {
  text-align: justify;
}

.blogs .blogs-content .right a {
  display: inline-block;
  background: crimson;
  color: #070707;
  font-size: 20px;
  font-weight: 500;
  padding: 10px 30px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}

.blogs .blogs-content .right a:hover {
  color: crimson;
  background: none;
}

.about .title::after {
  content: "what i am";
}

.about .about-content .left {
  width: 45%;
}

.about .about-content .left img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 6px;
}

.about .about-content .right {
  width: 55%;
}

.about .about-content .right .text {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
}

.about .about-content .right .text span {
  color: crimson;
}

.about .about-content .right p {
  text-align: justify;
}

.about .about-content .right a {
  display: inline-block;
  background: crimson;
  color: #070707;
  font-size: 20px;
  font-weight: 500;
  padding: 10px 30px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}

.about .about-content .right a:hover {
  color: crimson;
  background: none;
}

.skills .title::after {
  content: "what i know";
}

.skills .skills-content .column {
  width: calc(50% - 30px);
}

.skills .skills-content .left .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.skills .skills-content .left p {
  text-align: justify;
}

.skills .skills-content .left a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 16px;
  margin-top: 50px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}

.skills .skills-content .left a:hover {
  color: crimson;
  background: none;
}

.skills .skills-content .right .bars {
  margin-bottom: 15px;
}

.skills .skills-content .right .info {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  justify-content: space-between;
}

.skills .skills-content .right span {
  font-weight: 500;
  font-size: 18px;
}

.skills .skills-content .right .line {
  height: 5px;
  width: 100%;
  background: lightgrey;
  position: relative;
}

*/ .skills .skills-content .right .line::before {
  content: "";
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  background: crimson;
}

.contact .title::after {
  content: "get in touch";
}

.contact .contact-content .column {
  width: calc(50% - 30px);
}

.contact .contact-content .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact .contact-content .left p {
  text-align: justify;
}

.contact .contact-content .left .icons {
  margin: 10px 0;
}

.contact .contact-content .row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact .contact-content .row .info {
  margin-left: 15px;
}

.contact .contact-content .row i {
  font-size: 30px;
  color: crimson;
  margin-right: 20px;
  min-width: 40px;
}

.contact .contact-content .info .head {
  font-weight: 500;
  font-size: 18px;
}

.contact .contact-content .info .sub-title {
  color: #333;
  font-size: 16px;
}

.contact .right form .fields {
  display: flex;
  flex-wrap: wrap;
}

.contact .right form .field,
.contact .right form .fields .field {
  height: 45px;
  width: 48%;
  margin-bottom: 15px;
}

.contact .right form .textarea {
  height: 80px;
  width: 100%;
}

.contact .right form .name {
  margin-right: 10px;
}

.contact .right form .field input,
.contact .right form .textarea textarea {
  height: 100%;
  width: 100%;
  border: 1px solid lightgrey;
  border-radius: 6px;
  outline: none;
  padding: 0 15px;
  font-size: 17px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.contact .right form .field input:focus,
.contact .right form .textarea textarea:focus {
  border-color: #b3b3b3;
}

.contact .right form .textarea textarea {
  padding-top: 10px;
  resize: none;
}

.contact .right form .button-area {
  display: flex;
  align-items: center;
}

.right form .button-area button {
  color: #fff;
  display: block;
  width: 160px !important;
  height: 45px;
  outline: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  flex-wrap: nowrap;
  background: crimson;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}

.right form .button-area button:hover {
  color: crimson;
  background: none;
}

@media (max-width: 768px) {
  .contact .contact-content .column {
    width: 100%;
  }

  .contact .right form .fields {
    flex-direction: column;
  }

  .contact .right form .field,
  .contact .right form .textarea {
    width: 100%;
  }

  .contact .right form .name {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .contact .right form .button-area button {
    width: 100%;
  }

  .contact .contact-content .text {
    font-size: 18px;
  }

  .contact .contact-content .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact .contact-content .row .info {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .contact .contact-content .row i {
    margin-right: 10px;
  }
}

@media (max-width: 480px) {
  .contact .contact-content .text {
    font-size: 16px;
  }

  .contact .right form .fields .field {
    height: 40px;
  }

  .contact .right form .textarea {
    height: 70px;
  }
}

footer {
  background: #111;
  padding: 15px 23px;
  color: #fff;
  text-align: center;
}

footer span a {
  color: crimson;
  text-decoration: none;
}

footer span a:hover {
  text-decoration: underline;
}

@media (max-width: 1104px) {
  .about .about-content .left img {
    height: 350px;
    width: 350px;
  }
}

@media (max-width: 991px) {
  .max-width {
    padding: 0 50px;
  }
}

@media (max-width: 947px) {
  .menu-btn {
    display: block;
    z-index: 999;
  }

  .menu-btn i.active:before {
    content: "\f00d";
  }

  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }

  .navbar .menu.active {
    left: 0;
  }

  .navbar .menu li {
    display: block;
  }

  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }

  .navbar .menu li.has-dropdown > .dropdown {
    position: static;
    display: none;
    background: #1a1a1a;
    border-top: 1px solid #333;
    box-shadow: none;
    min-width: auto;
    border-radius: 0;
    padding: 0;
  }
  .navbar .menu li.has-dropdown.open > .dropdown { display: block; }
  .navbar .menu li.has-dropdown > .dropdown > li > a {
    padding: 10px 30px;
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    margin: 0;
  }
  .navbar .menu li.has-submenu > .submenu {
    position: static;
    display: none;
    background: #222;
    border-top: 1px solid #333;
    box-shadow: none;
    min-width: auto;
    border-radius: 0;
    padding: 0;
  }
  .navbar .menu li.has-submenu.open > .submenu { display: block; }
  .navbar .menu li.has-submenu > .submenu > li > a {
    padding: 10px 40px;
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    margin: 0;
  }

  .home .home-content .text-2 {
    font-size: 70px;
  }

  .home .home-content .text-3 {
    font-size: 35px;
  }

  .home .home-content a {
    font-size: 23px;
    padding: 10px 30px;
  }

  .max-width {
    max-width: 930px;
  }

  .about .about-content .column {
    width: 100%;
  }

  .about .about-content .left {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px;
  }

  .about .about-content .right {
    flex: 100%;
  }

  .services .serv-content .card {
    width: calc(50% - 10px);
    margin-bottom: 20px;
  }

  .skills .skills-content .column,
  .contact .contact-content .column {
    width: 100%;
    margin-bottom: 35px;
  }
}

@media (max-width: 690px) {
  .max-width {
    padding: 0 23px;
  }

  .home .home-content .text-2 {
    font-size: 60px;
  }

  .home .home-content .text-3 {
    font-size: 32px;
  }

  .home .home-content a {
    font-size: 20px;
  }

  .services .serv-content .card {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .home .home-content .text-2 {
    font-size: 50px;
  }

  .home .home-content .text-3 {
    font-size: 27px;
  }

  .about .about-content .right .text,
  .skills .skills-content .left .text {
    font-size: 19px;
  }

  .contact .right form .fields {
    flex-direction: column;
  }

  .contact .right form .name,
  .contact .right form .email {
    margin: 0;
  }

  .right form .error-box {
    width: 150px;
  }

  .scroll-up-btn {
    right: 15px;
    bottom: 15px;
    height: 38px;
    width: 35px;
    font-size: 23px;
    line-height: 38px;
  }
}

.cards {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0px;
  gap: 2.5vh;
}

.skill-card {
  width: 14vw;
  height: 14vw;
  perspective: 1000px;
}

.card-front,
.card-back {
  width: 100%;
  height: 100%;
  background-color: #3d3e42;
  border-radius: 20px;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5vh;
  transition: transform 0.6s;
}

.card-front {
  background: linear-gradient(145deg, #111827, #1f2933);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.card-front img {
  height: 7.5vw;
  width: 7.5vw;
  object-fit: contain;
}

.card-front h2 {
  font-size: 24px;
  font-weight: 400;
  color: #fbfbfb;
}

.card-back {
  background-color: #f5f5f5;
  transform: rotateY(180deg);
}

.card-back h2,
.card-back p {
  color: #000000;
}

.skill-card:hover .card-front {
  transform: rotateY(180deg);
}

.skill-card:hover .card-back {
  transform: rotateY(360deg);
}

.skills h1 {
  font-size: 36px;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill-card {
  width: 250px;
  height: 250px;
  margin: 10px;
}

@media (max-width: 768px) {
  .skills h1 {
    font-size: 28px;
  }

  .skill-card {
    width: calc(50% - 20px);
    height: 200px;
  }

  .card-front img {
    height: 12vw;
    width: 12vw;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .skill-card {
    width: calc(25% - 20px);
    height: 250px;
  }
}

@media (max-width: 480px) {
  .skills {
    padding: 30px 10px;
  }

  .skill-card {
    width: 100%;
    height: 180px;
  }

  .card-front img {
    height: 15vw;
    width: 15vw;
  }
}

@media (max-width: 768px) {

  body,
  html {
    overflow-x: hidden;
  }
}

/* Existing styles */
.blog .blog-content .right a:hover {
  color: crimson;
  background: none;
}

.blog .title::after {
  content: "new blogs ";
}

.blog .blog-content .column {
  width: calc(50% - 30px);
}

.blog .blog-content .left .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-section {
  text-align: center;
  margin-bottom: 20px;
}

.blog-section h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #fff;
}

.blog-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* Enable horizontal scrolling */
  padding: 10px;
  scroll-snap-type: x mandatory;
  /* Enable snap scrolling */
  scrollbar-width: thin;
  /* Improve UX for scrolling */
  scrollbar-color: #aaa #fff;
}

.blog-card {
  flex: 0 0 auto;
  background: #fff;
  color: #000;
  border-radius: 10px;
  min-width: 300px;
  min-height: 300px;
  scroll-snap-align: start;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: left;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-card-inner {
  padding: 20px;
}

.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.blog-card h3 {
  font-size: 1.4em;
  color: #222;
  text-align: center;
}

.blogs .blogs-content .blog-card {
  width: calc(33.33% - 20px);
  border-radius: 6px;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .blog-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .blog-card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 767px) {
  .blog-container {
    flex-direction: row;
    gap: 20px;
  }

  .blog-card {
    flex-shrink: 0;
    width: 100%;
    border-radius: 15px;
    transition: all 0.4s ease-in-out;
  }

  .blog-card:hover {
    transform: scale(1.03);
  }

  .blog-card img {
    border-radius: 15px;
    object-fit: cover;
  }

  .blog-card-inner {
    padding: 30px;
  }

  .blog-card p {
    font-size: 1em;
    color: #555;
  }
}

.footer {
  background: linear-gradient(145deg, #111827, #1f2933);
  color: #fff;
  padding: 100px 100;
  margin-left: 0px;
  justify-content: center;
  align-items: center;
  text-align: center;
  align-content: center;
}

/* ===== CUSTOM: Hero outline button ===== */
.home .home-content .text-2 {
  font-size: 62px;
}

.home .home-content .btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: rgba(255, 255, 255, 0.9);
  margin-left: 12px;
}

.home .home-content .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* ===== CUSTOM: About section ===== */
.about .title::after {
  content: "who i am";
}

.about-bio {
  color: #444;
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* Timeline sections */
.tl-section { margin-bottom: 36px; }
.tl-heading {
  font-family: 'Ubuntu', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e8e8;
}
.tl-list { display: flex; flex-direction: column; gap: 12px; }
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: #f9f9f9;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-item:hover {
  border-color: crimson;
  box-shadow: 0 2px 10px rgba(220,20,60,0.08);
}
.tl-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.tl-body { flex: 1; }
.tl-role { font-size: 14.5px; font-weight: 700; color: #111; margin-bottom: 2px; }
.tl-org   { font-size: 13px; color: #666; margin-bottom: 2px; }
.tl-date  { font-size: 12px; color: #999; margin-bottom: 6px; }
.tl-desc  { font-size: 13.5px; color: #555; line-height: 1.65; margin: 0; }
.tl-tags  { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.tl-tag   { background:rgba(220,20,60,0.07); border:1px solid rgba(220,20,60,0.25); color:#c0392b; font-size:11px; font-weight:600; padding:3px 9px; border-radius:20px; display:inline-flex; align-items:center; gap:4px; }
.tl-thesis, .tl-advisor { font-size: 13px; color: #444; line-height: 1.6; margin: 8px 0 2px; display:flex; align-items:baseline; gap:8px; }
.tl-thesis-label { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #fff; background: #c0392b; border-radius: 3px; padding: 2px 6px; white-space: nowrap; flex-shrink: 0; }
.tl-thesis em, .tl-advisor a { color: #333; }
.tl-advisor a { color: #c0392b; text-decoration: none; font-weight: 600; }
.tl-advisor a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .about-intro { flex-direction: column; align-items: center; text-align: center; }
  .tl-badge { width: 38px; height: 38px; font-size: 9.5px; }
  .tl-role { font-size: 13.5px; }
}

/* ===== CUSTOM: Skill icon (Font Awesome in card-front) ===== */
.card-front .skill-icon {
  font-size: 3.5rem;
  color: crimson;
}

.skills .title::after {
  content: "what i know";
}

/* ===== CUSTOM: Skills tag grid ===== */
.skill-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.skill-group {
  background: #1a1a2e;
  border: 1px solid #2a2a44;
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.skill-group:hover { border-color: crimson; }
.skill-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 11px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
  transition: opacity 0.2s;
  cursor: default;
}
.s-tag:hover { opacity: 0.8; }
.s-blue   { background:#0d1b2e; color:#7ab5e8; border-color:#1a3a5a; }
.s-red    { background:#1e0d0d; color:#e08080; border-color:#4a1818; }
.s-teal   { background:#0a1e1e; color:#60d5cf; border-color:#1a4040; }
.s-green  { background:#0d1e0e; color:#6acc7a; border-color:#1a4020; }
.s-purple { background:#160e2a; color:#b09ae8; border-color:#38285a; }
.s-orange { background:#1e1208; color:#e8a060; border-color:#4a2a10; }
.s-gray   { background:#1a1a1a; color:#aaa;    border-color:#333;    }
@media (max-width: 600px) {
  .skill-tags-grid { grid-template-columns: 1fr; }
}

/* ===== CUSTOM: Publications section ===== */
.publications {
  background: #0f0f1a;
}

.publications .title {
  color: #fff;
}

.publications .title::before {
  background: rgba(255, 255, 255, 0.3);
}

.publications .title::after {
  content: "peer-reviewed research";
  background: #0f0f1a;
  color: crimson;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pub-card {
  background: #1a1a2e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(220, 20, 60, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pub-card:hover {
  transform: translateY(-5px);
  border-color: crimson;
}

.pub-header {
  background: linear-gradient(135deg, #16213e, #0f3460);
  padding: 20px;
  border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

.pub-num {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: crimson;
  line-height: 1;
  font-family: "Ubuntu", sans-serif;
}

.pub-journal {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
}

.pub-year {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 3px;
}

.pub-body {
  padding: 14px 18px 18px;
}

.pub-citation {
  font-size: 12px;
  color: #bbb;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 12px;
}

.pub-btn {
  display: inline-block;
  background: transparent;
  color: crimson;
  border: 1px solid crimson;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pub-btn:hover {
  background: crimson;
  color: #fff;
}

@media (max-width: 1024px) {
  .pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== CUSTOM: Contact social icons (Font Awesome) ===== */
.social-media {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

.social-media a {
  font-size: 32px;
  color: #444;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
  color: crimson;
  transform: translateY(-3px);
}

/* ===== CUSTOM: Contact title ===== */
.contact .title::after {
  content: "get in touch";
}

/* --- Blogger Sections --- */
.blogger-section {
  padding: 100px 0;
  background: #111;
  color: #fff;
}

.blogger-section.gallery,
.blogger-section.machine_learning,
.blogger-section.physics {
  background: #fff;
  color: #111;
}

.blogger-section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: 'Ubuntu', sans-serif;
}

.blogger-section .title::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #111;
  transform: translateX(-50%);
}

.blogger-section.projects .title::before,
.blogger-section.awards .title::before,
.blogger-section.wellbeing .title::before,
.blogger-section.quantum .title::before {
  background: #fff;
}

.blogger-section .title::after {
  position: absolute;
  bottom: -12px;
  left: 50%;
  font-size: 20px;
  color: crimson;
  padding: 0 5px;
  background: #111;
  transform: translateX(-50%);
  content: 'explore';
}

.blogger-section.gallery .title::after,
.blogger-section.machine_learning .title::after,
.blogger-section.physics .title::after {
  background: #fff;
}

.blogger-section .blogger-content {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.blogger-section .blogger-content h1,
.blogger-section .blogger-content h2,
.blogger-section .blogger-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: 'Ubuntu', sans-serif;
}

.blogger-section .blogger-content p {
  margin-bottom: 15px;
}

.blogger-section .blogger-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blogger-section .blogger-content iframe {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 8px;
}

.blogger-section a {
  color: crimson;
  text-decoration: underline;
}

.blogger-section a:hover {
  color: #fff;
}

.blogger-section.gallery a:hover,
.blogger-section.machine_learning a:hover,
.blogger-section.physics a:hover {
  color: #111;
}

.blogger-section ul,
.blogger-section ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.blogger-section li {
  margin-bottom: 10px;
}

/* --- Premium Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: #1e1e2d;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.2);
}

.card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid crimson;
}

.card-content {
  padding: 25px;
  color: #fff;
  text-align: left;
}

.blogger-section:nth-child(even) .card {
  background: #fdfdfd;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.blogger-section:nth-child(even) .card-content {
  color: #111;
}

.card-content h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 15px;
  font-family: 'Ubuntu', sans-serif;
}

.blogger-section:nth-child(even) .card-content h3 {
  color: #111;
}

.card-content p {
  font-size: 15px;
  color: #b0b0c0;
  margin-bottom: 20px;
}

.blogger-section:nth-child(even) .card-content p {
  color: #555;
}

.read-more-btn {
  display: inline-block;
  color: crimson;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.read-more-btn:hover {
  color: #ff3366;
}

.read-more-btn i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

/* --- Premium Home Showcase --- */
.home .home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 80px;
}

.news-ticker {
  background: rgba(220, 20, 60, 0.2);
  border-left: 4px solid crimson;
  padding: 12px 20px;
  border-radius: 6px;
  display: inline-block;
  color: #fff;
  margin-bottom: 30px;
  font-size: 15px;
  font-weight: 500;
}

.pulse-icon {
  display: inline-block;
  animation: firepulse 2s infinite;
}

@keyframes firepulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.main-title {
  font-size: 55px;
  font-weight: 700;
  color: #fff;
  font-family: 'Ubuntu', sans-serif;
  margin-bottom: 10px;
}

.sub-title {
  font-size: 24px;
  font-weight: 500;
  color: crimson;
  margin-bottom: 25px;
  font-family: 'Ubuntu', sans-serif;
}

.bio-text {
  font-size: 18px;
  line-height: 1.7;
  color: #cfcfcf;
  max-width: 800px;
  margin-bottom: 35px;
}

.home .action-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  align-items: center;
  justify-content: center;
}

.home .action-buttons .btn {
  display: inline-block;
  padding: 12px 30px;
  color: #fff;
  background: crimson;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid crimson;
  text-decoration: none;
}

.home .action-buttons .btn:hover {
  background: transparent;
  color: crimson;
}

.home .action-buttons .btn-outline {
  background: transparent;
  color: crimson;
}

.home .action-buttons .btn-outline:hover {
  background: crimson;
  color: #fff;
}

.involvement-showcase {
  background: #1e1e2d;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1000px;
  width: 100%;
}

.involvement-showcase h3 {
  color: #fff;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.involvement-showcase i {
  color: crimson;
  margin-right: 8px;
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 18px;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag:hover {
  background: crimson;
  border-color: crimson;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .main-title {
    font-size: 40px;
  }

  .sub-title {
    font-size: 20px;
  }

  .home .action-buttons {
    flex-direction: column;
  }
}

/* --- Slider Showcase --- */
.slider-container {
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 10px auto 40px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#slider {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .slide img {
    height: 300px;
  }
}

/* ====== HOME HERO: Full-Width ====== */
.blog-home {
  height: auto !important;
  min-height: 100vh;
  background: transparent !important;
  padding-top: 70px;
  position: relative;
}

.home-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 50px;
}

/* --- Main --- */
.blog-main {
  background: rgba(0, 0, 0, 0.35);
  padding: 32px 40px;
  backdrop-filter: blur(6px);
}

.blog-main-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 20px;
  letter-spacing: 2px;
}

.blog-bio {
  font-family: "Ubuntu", sans-serif;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 24px;
}

.blog-section-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 1.1rem;
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 700;
}

.blog-slider-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 28px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.blog-slider-wrapper #slider {
  display: flex;
  transition: transform 1s ease-in-out;
}

.blog-slider-wrapper .slide {
  min-width: 100%;
  box-sizing: border-box;
}

.blog-slider-wrapper .slide img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.blog-news-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 0.72rem;
  color: #dc143c;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(220, 20, 60, 0.3);
  padding-top: 18px;
  margin-bottom: 14px;
  font-weight: 700;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.highlight-list li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  padding: 14px 16px;
  border-left: 2px solid rgba(220, 20, 60, 0.4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.highlight-list li:hover {
  border-color: #dc143c;
  background: rgba(220, 20, 60, 0.06);
}

.hl-tag {
  font-family: "Ubuntu", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #dc143c;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.35);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .blog-main {
    padding: 20px 16px;
  }

  .blog-main-title {
    font-size: 1.5rem;
  }

  .home-hero {
    padding: 40px 20px 30px;
  }
}

/* ===== CUSTOM: Skills badge grid (devicons style) ===== */
.stacks { display: flex; flex-direction: column; gap: 24px; margin-top: 10px; }
.stack-cat-block { }
.scat-title { font-size: 12px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.stk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 9px;
  background: #1c1c2e;
  border: 1px solid #2e2e48;
  border-radius: 6px;
  font-size: 12.5px;
  color: #ccc;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}
.stk-badge:hover { border-color: crimson; color: #fff; background: #22223a; }
.stk-badge .si { font-size: 15px; line-height: 1; }
.stk-badge i.si { font-size: 16px; }
@media (max-width: 600px) {
  .stk-row { gap: 6px; }
  .stk-badge { font-size: 11.5px; padding: 4px 10px 4px 8px; }
}

/* ================================================================
   ANIMATION SYSTEM
   ================================================================ */

/* Scroll progress bar */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, crimson 0%, #ff6b6b 100%);
  z-index: 100000;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Navbar entrance */
@keyframes navDrop {
  from { transform: translateY(-110%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.navbar { animation: navDrop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Scroll-reveal: base invisible state (JS adds attribute, CSS hides, observer reveals) */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal][data-dir="left"]  { transform: translateX(-32px); }
[data-reveal][data-dir="scale"] { transform: scale(0.91) translateY(14px); }
[data-reveal].revealed          { opacity: 1 !important; transform: none !important; }

/* Lift effects on hover (upgrade over flat transitions) */
.tl-item    { transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important; }
.tl-item:hover { border-color: crimson !important; box-shadow: 0 4px 18px rgba(220,20,60,0.12) !important; transform: translateX(5px) !important; }

.pub-card   { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease !important; }
.pub-card:hover { transform: translateY(-6px) !important; box-shadow: 0 12px 32px rgba(220,20,60,0.2) !important; }

.card { transition: transform 0.35s ease, box-shadow 0.35s ease !important; }
.card:hover { transform: translateY(-6px) !important; box-shadow: 0 16px 40px rgba(0,0,0,0.22) !important; }


/* Badge shimmer on hover */
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
.stk-badge {
  transition: border-color 0.2s, color 0.2s, background 0.2s !important;
}
.stk-badge:hover {
  background: linear-gradient(90deg, #1c1c2e 0%, #2d1028 40%, #1c1c2e 80%) center / 200% auto !important;
  animation: shimmer 1.6s linear infinite !important;
  border-color: crimson !important;
  color: #fff !important;
}

/* Scroll-up button pulse */
@keyframes upPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,20,60,0.4); }
  70%       { box-shadow: 0 0 0 10px rgba(220,20,60,0); }
}
.scroll-up-btn.show { animation: upPulse 1.8s ease-out infinite; }
}
/* ── Publications: badges ──────────────────────────── */
.pub-title  { font-size:13px; font-weight:600; color:#ddd; margin-bottom:6px; line-height:1.5; }
.pub-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:10px; }
.pub-cites  { background:rgba(220,20,60,0.12); color:crimson; border:1px solid rgba(220,20,60,0.3); padding:2px 10px; border-radius:12px; font-size:11px; font-weight:700; white-space:nowrap; }
.pub-q      { padding:2px 7px; border-radius:10px; font-size:10px; font-weight:800; margin-right:5px; vertical-align:middle; }
.pub-q.q1   { background:#e8f5e9; color:#2e7d32; }
.pub-q.q2   { background:#e3f2fd; color:#1565c0; }
.pub-q.q3   { background:#f5f5f5; color:#757575; }
