/*-------------------------
# Toggle theme
--------------------------*/
.dark-mode {
  background-color: black;
  color: white;
}

.dark-mode #hero {
  background: url("../img/cover-bg-dark.jpg") top right no-repeat;
}
.dark-mode #hero h1 {
  color: white;
}

.dark-mode #contact .info {
  padding: 30px;
}

.dark-mode #contact #contact-wrapper {
  justify-content: center;
  align-items: center;
}

.dark-mode #contact #contact-wrapper-4 {
  width: 1200px;
}

.dark-mode .section-title h2 {
  color: white;
}

.dark-mode .facts .purecounter {
  color: white;
}

.dark-mode .facts .purecounter-clients {
  color: white;
}

.dark-mode .facts .facts-symbol {
  color: white;
}

.dark-mode #hero .tagline {
  display: none !important;
}

.dark-mode .skills .progress .skill {
  color: #fff;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  display: none;
}

/*--------------------------------------------------------------
# Theme Toggle Button
--------------------------------------------------------------*/
.theme-toggle-btn {
  background: linear-gradient(135deg, #0563bb 0%, #067ded 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(5, 99, 187, 0.3);
  flex-shrink: 0;
  margin-left: 10px;
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(5, 99, 187, 0.4);
  background: linear-gradient(135deg, #067ded 0%, #0745a5 100%);
}

.dark-mode .theme-toggle-btn {
  background: linear-gradient(135deg, #149ddd 0%, #0a7bb8 100%);
  box-shadow: 0 4px 12px rgba(20, 157, 221, 0.3);
}

.dark-mode .theme-toggle-btn:hover {
  background: linear-gradient(135deg, #0a7bb8 0%, #055a8a 100%);
  box-shadow: 0 6px 16px rgba(20, 157, 221, 0.4);
}

@media (max-width: 1200px) {
  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
    margin-left: 8px;
  }
}

@media (max-width: 499px) {
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-left: 5px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.nav-menu {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 9997;
  background: white;
  box-shadow: 0 2px 15px rgba(5, 99, 187, 0.1);
  width: 100%;
  transition: all 0.3s ease;
}

.nav-menu.sticky-top {
  position: sticky;
  top: 0;
  z-index: 9997;
}

.dark-mode .nav-menu {
  background: #1a1a1a;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.nav-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #45505b;
  padding: 12px 16px;
  transition: 0.3s;
  font-size: 14px;
  border-radius: 5px;
  background: transparent;
  height: auto;
  width: auto;
  overflow: visible;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 18px;
  margin-right: 5px;
}

.nav-menu a span,
.nav-menu a:focus span {
  padding: 0;
  color: #45505b;
  display: block;
}

.dark-mode .nav-menu a,
.dark-mode .nav-menu a:focus {
  color: #e0e0e0;
}

.dark-mode .nav-menu a span,
.dark-mode .nav-menu a:focus span {
  color: #e0e0e0;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: white;
  background: #0563bb;
  border-radius: 5px;
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover>a span {
  color: white;
}

.dark-mode .nav-menu a:hover,
.dark-mode .nav-menu .active,
.dark-mode .nav-menu .active:focus,
.dark-mode .nav-menu li:hover>a {
  color: white;
  background: #149ddd;
}

@media (max-width: 768px) {
  .nav-menu-list {
    gap: 0;
  }

  .nav-menu a,
  .nav-menu a:focus {
    padding: 10px 8px;
    font-size: 12px;
  }

  .nav-menu a span,
  .nav-menu a:focus span {
    display: none;
  }

  .nav-menu a i,
  .nav-menu a:focus i {
    font-size: 16px;
    margin-right: 0;
  }

  .nav-container {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-wrap: wrap;
  }

  .nav-menu-list {
    width: 100%;
    justify-content: center;
  }

  .nav-menu a,
  .nav-menu a:focus {
    padding: 8px 6px;
    font-size: 11px;
  }

  .nav-menu a i,
  .nav-menu a:focus i {
    font-size: 14px;
  }
}

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

.mobile-nav-toggle i {
  color: #45505b;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background-color: #0563bb;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/cover-bg.jpg") top right no-repeat;
  background-size: cover;
  position: relative;
}

#hero .tagline {
  display: none;
}

@media (min-width: 992px) {
  #hero {
    padding-left: 160px;
  }
}

#hero:before {
  content: "";
  /* background: rgba(255, 255, 255, 0.8); */
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #45505b;
}

#hero p {
  color: #45505b;
  margin: 15px 0 0 0;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #0563bb;
  letter-spacing: 1px;
}

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

#hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: #45505b;
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

#hero .social-links a:hover {
  color: #0563bb;
}

@media (max-width: 768px) {
  #hero .tagline{
    display: flex !important;
    margin-top: 38rem !important;
    color: #45505b;
    margin: 15px 0 0 0;
    font-family: "Poppins", sans-serif;
    justify-content: center;
    align-items: center;
    font-size: x-large;
    font-weight: bold;
  }
}

@media (max-width: 992px) {
  #hero {
    text-align: center;
  }

  #hero h1 {
    display: none;
    font-size: 32px;
    line-height: 36px;
  }

  #hero p {
    margin-top: 35rem;
    display: none;
  }

  .dark-mode #hero p {
    display: none;
  }

  .container-hero .bxl-linkedin:before {
    display: none;
  }

  .container-hero .bxl-github:before {
    display: none;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #45505b;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #0563bb;
  bottom: 0;
  left: calc(50% - 20px);
}

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

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  background-color: #fff;
  padding: clamp(40px, 8vw, 80px) 0;
}

.dark-mode .about {
  background-color: #1a1a1a;
}

.about .content h3 {
  font-weight: 700;
  font-size: clamp(24px, 5vw, 32px);
  color: #0563bb;
  margin-bottom: 10px;
}

.about-intro {
  margin-bottom: 30px;
}

.about-location {
  display: flex;
  align-items: center;
  color: #728394;
  font-size: clamp(14px, 3vw, 16px);
  margin: 0;
}

.about-location i {
  margin-right: 8px;
  color: #0563bb;
}

.about-description {
  line-height: 1.8;
}

.about-highlight {
  font-size: clamp(14px, 3vw, 16px);
  color: #45505b;
  font-weight: 500;
  padding: 15px;
  background: linear-gradient(135deg, rgba(5, 99, 187, 0.1) 0%, rgba(0, 239, 199, 0.1) 100%);
  border-left: 4px solid #0563bb;
  border-radius: 4px;
  margin-bottom: 25px;
}

.dark-mode .about-highlight {
  background: linear-gradient(135deg, rgba(5, 99, 187, 0.2) 0%, rgba(0, 239, 199, 0.2) 100%);
  color: #e0e0e0;
}

.about-expertise,
.about-passion,
.about-interests {
  margin-bottom: 30px;
}

.about-expertise h4,
.about-passion h4,
.about-interests h4 {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 600;
  color: #45505b;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.dark-mode .about-expertise h4,
.dark-mode .about-passion h4,
.dark-mode .about-interests h4 {
  color: #e0e0e0;
  border-bottom-color: #333;
}

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

.expertise-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  font-size: clamp(13px, 2.5vw, 15px);
  color: #45505b;
  line-height: 1.6;
}

.dark-mode .expertise-list li {
  color: #e0e0e0;
}

.expertise-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0563bb;
  font-weight: bold;
  font-size: 18px;
}

.about-passion > p {
  font-size: clamp(13px, 2.5vw, 15px);
  color: #728394;
  margin-bottom: 20px;
}

.passion-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.passion-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 2.5vw, 15px);
  color: #45505b;
  flex: 1;
  min-width: 200px;
}

.dark-mode .passion-list li {
  color: #e0e0e0;
}

.passion-list i {
  font-size: 20px;
  color: #0563bb;
  flex-shrink: 0;
}

.about-interests > p {
  font-size: clamp(13px, 2.5vw, 15px);
  color: #728394;
  margin-bottom: 20px;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.interest-item:hover {
  background: #f0f8ff;
  border-color: #0563bb;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(5, 99, 187, 0.1);
}

.dark-mode .interest-item {
  background: #2a2a2a;
  border-color: #333;
}

.dark-mode .interest-item:hover {
  background: #333;
  border-color: #0563bb;
}

.interest-item i {
  font-size: 20px;
  color: #0563bb;
  flex-shrink: 0;
}

.interest-item span {
  font-size: clamp(12px, 2.5vw, 14px);
  color: #45505b;
}

.dark-mode .interest-item span {
  color: #e0e0e0;
}

.about-cta {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #0563bb 0%, #067ded 100%);
  border-radius: 8px;
  text-align: center;
}

.about-cta p {
  color: #fff;
  margin: 0;
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 1.6;
}

.closing-message {
  font-size: clamp(13px, 2.5vw, 15px) !important;
  color: #fff !important;
}

/* About image styling */
.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(5, 99, 187, 0.2);
  transition: all 0.3s ease;
  max-width: 360px;
  margin: 0 0 30px 0;
}

.about-image-wrapper:hover {
  box-shadow: 0 15px 50px rgba(5, 99, 187, 0.3);
  transform: translateY(-5px);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.dark-mode .about-image-wrapper {
  box-shadow: 0 10px 40px rgba(5, 99, 187, 0.3);
}

@media (max-width: 768px) {
  .about-image-wrapper {
    max-width: 300px;
  }
}

@media (max-width: 499px) {
  .about-image-wrapper {
    max-width: 250px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about {
    padding: 40px 0;
  }

  .about .row {
    flex-direction: column;
  }

  .about-description {
    margin-top: 30px;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }

  .passion-list {
    flex-direction: column;
    gap: 12px;
  }

  .passion-list li {
    min-width: auto;
    flex: none;
  }

  .interest-item {
    flex-direction: column;
    text-align: center;
  }

  .about-cta {
    margin-top: 25px;
    padding: 15px;
  }

  .about-image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .about-intro {
    margin-bottom: 20px;
  }

  .about-expertise,
  .about-passion,
  .about-interests {
    margin-bottom: 20px;
  }

  .expertise-list li {
    padding: 10px 0;
    padding-left: 25px;
    font-size: 13px;
  }

  .interests-grid {
    gap: 10px;
  }

  .interest-item {
    padding: 12px;
    gap: 10px;
  }

  .interest-item i {
    font-size: 18px;
  }

  .interest-item span {
    font-size: 12px;
  }
}

/*--------------------------------------------------------------
# About — Two-column layout
--------------------------------------------------------------*/
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.about-left {
  min-width: 0;
}

/* Sticky right column */
.about-right {
  position: sticky;
  top: 90px;
  align-self: start;
}

/*--------------------------------------------------------------
# Terminal Card
--------------------------------------------------------------*/
.terminal-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0,0,0,0.10);
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 13.5px;
  line-height: 1.75;
  background: #1e1e2e;
  border: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.terminal-card:hover {
  box-shadow: 0 16px 56px rgba(0,0,0,0.28), 0 4px 16px rgba(5,99,187,0.15);
  transform: translateY(-3px);
}

/* Title bar */
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #2a2a3d;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tb-red    { background: #ff5f57; }
.tb-yellow { background: #febc2e; }
.tb-green  { background: #28c840; }

.tb-filename {
  margin-left: 10px;
  color: #888aac;
  font-size: 12px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: 0.03em;
}

/* Body */
.terminal-body {
  padding: 20px 22px 18px;
  background: #1e1e2e;
}

.t-line {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
}

.t-blank { min-height: 6px; }

.t-indent {
  padding-left: 20px;
}

/* Syntax colours */
.t-comment  { color: #6272a4; font-style: italic; }
.t-key      { color: #cba6f7; }           /* purple  — keys */
.t-str      { color: #a6e3a1; }           /* green   — strings */
.t-bool     { color: #fab387; }           /* orange  — booleans */
.t-arr      { color: #89dceb; }           /* cyan    — brackets */
.t-punct    { color: #cdd6f4; }           /* white   — colons / commas */
.t-label    { color: #89b4fa; }           /* blue    — custom labels */
.t-bullet   { font-style: normal; }
.t-link {
  color: #f38ba8;
  text-decoration: none;
  border-bottom: 1px dashed rgba(243,139,168,0.45);
  transition: color 0.2s, border-color 0.2s;
}
.t-link:hover {
  color: #ff9eb3;
  border-bottom-color: #ff9eb3;
}

/* Blinking cursor */
.t-cursor-line { margin-top: 6px; }
.t-prompt { color: #a6e3a1; margin-right: 6px; }
.t-cursor {
  color: #cdd6f4;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Light mode overrides — keep dark terminal but soften the shadow */
.about .terminal-card {
  /* terminal stays dark in both themes — it looks intentional */
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(5,99,187,0.08);
}

/* Responsive: stack on smaller screens */
@media (max-width: 1100px) {
  .about-two-col {
    grid-template-columns: 1fr 380px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .about-two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-right {
    position: static;
  }

  .terminal-card {
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts {
  padding-bottom: 30px;
}

.facts .count-box {
  padding: 30px;
  width: 100%;
}

.facts .count-box i {
  display: block;
  font-size: 44px;
  color: #149ddd;
  float: left;
}

.facts .count-box span {
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  color: #050d18;
}

.facts .count-box p {
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: #122f57;
}

.facts .count-box a {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: #122f57;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: ease-in-out 0.3s;
}

.facts .count-box a:hover {
  color: #1f5297;
}

.facts .purecounter {
  color: white;
}

@media (max-width: 992px) {
  .dark-mode .facts .count-box span {
    color: aliceblue;
  }

  .dark-mode .facts .count-box p {
    color: aliceblue;
    font-size: large;
  }
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  padding: 10px 0;
  margin: 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #45505b;
}

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

.skills .progress-bar-wrap {
  background: #f2f3f5;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: #0563bb;
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #45505b;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #0563bb;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #0563bb;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #f7f8f9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

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

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #0563bb;
}

/* ==================================================
   PORTFOLIO / PROJECTS SECTION
================================================== */

#portfolio {
  padding: 80px 0;
}

.portfolio-filters {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-filters li {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 20px;
  background: #f2f3f5;
  color: #dfd2d2;
  font-weight: 600;
  transition: 0.3s;
}

.portfolio-filters li:hover,
.portfolio-filters .active {
  background: #fff;
  color: #fff;
}

/* Dark mode filters */
.dark-mode .portfolio-filters li {
  background: #e0e0e0;
  color: #030202;
}

.dark-mode .portfolio-filters li:hover,
.dark-mode .portfolio-filters .active {
  color: #fff;
}

.portfolio-item {
  margin-bottom: 30px;
}

.portfolio-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-wrap img {
  width: 100%;
  transition: transform 0.4s ease;
}

.portfolio-wrap:hover img {
  transform: scale(1.08);
}

/* Overlay */
.portfolio-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  transition: 0.4s;
  z-index: 1;
}

.portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: 0.4s;
}

.portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio-info h4 {
  font-size: 20px;
  font-weight: 700;
}

.portfolio-info p {
  font-size: 14px;
  margin-bottom: 10px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tech-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #0563bb;
  color: #fff;
}

.portfolio-links a {
  font-size: 26px;
  color: #0563bb;
}

.portfolio-links a:hover {
  color: #148af9;
}

/* Dark mode */
.dark-mode .portfolio-wrap::before {
  background: rgba(0, 0, 0, 0.92);
}

.dark-mode .portfolio-info h4,
.dark-mode .portfolio-info p {
  color: #fff;
}

.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio .research {
  margin-left: 350px;
}

#research-publications .portfolio-wrap {
  width: 800px;
  margin-left: 60px;
  margin-bottom: 25px;
}

@media (max-width: 992px) {
  #research-publications .portfolio-wrap {
    width: 370px !important;
    margin-left: 0px !important;
    margin-bottom: 25px;
  }
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  background: #fff;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(69, 80, 91, 0.8);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(15, 23, 42, 0.82);
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  bottom: 30px;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .portfolio-wrap .portfolio-info::before {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  top: 35px;
  left: 35px;
  border-top: 3px solid rgba(255, 255, 255, 0.5);
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info::after {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  bottom: 35px;
  right: 35px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.5);
  border-right: 3px solid rgba(255, 255, 255, 0.5);
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #ffffff;
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  color: #60b4ff;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info::before {
  top: 15px;
  left: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info::after {
  bottom: 15px;
  right: 15px;
}

#toggleBtn1, #toggleBtn2, #toggleBtn3, #toggleBtn4, #toggleBtn5 {
  display: none; 
}

@media (max-width: 499px) {
  #research-content-hidden-1, #research-content-hidden-2, #research-content-hidden-3, #research-content-hidden-4, #research-content-hidden-5 {
    display: none;
  }

  #toggleBtn1, #toggleBtn2, #toggleBtn3, #toggleBtn4, #toggleBtn5 {
    display: block; 
    color: cornflowerblue;
  }

  #toggleBtn-show-less-1, #toggleBtn-show-less-2, #toggleBtn-show-less-3, #toggleBtn-show-less-4, #toggleBtn-show-less-5 {
    display: block; 
    color: coral;
  }
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

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

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(69, 80, 91, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

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

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

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

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

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

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.05);
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .icon-box .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .icon-box .icon svg path {
  transition: 0.5s;
  fill: #f5f5f5;
}

.services .icon-box h4 {
  font-weight: 600;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .icon-box h4 a {
  color: #45505b;
  transition: ease-in-out 0.3s;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  border-color: #fff;
  box-shadow: 0px 0 35px 0 rgba(0, 0, 0, 0.08);
}

.services .iconbox-blue i {
  color: #47aeff;
}

.services .iconbox-blue:hover .icon i {
  color: #fff;
}

.services .iconbox-blue:hover .icon path {
  fill: #47aeff;
}

.services .iconbox-orange i {
  color: #ffa76e;
}

.services .iconbox-orange:hover .icon i {
  color: #fff;
}

.services .iconbox-orange:hover .icon path {
  fill: #ffa76e;
}

.services .iconbox-pink i {
  color: #e80368;
}

.services .iconbox-pink:hover .icon i {
  color: #fff;
}

.services .iconbox-pink:hover .icon path {
  fill: #e80368;
}

.services .iconbox-yellow i {
  color: #ffbb2c;
}

.services .iconbox-yellow:hover .icon i {
  color: #fff;
}

.services .iconbox-yellow:hover .icon path {
  fill: #ffbb2c;
}

.services .iconbox-red i {
  color: #ff5828;
}

.services .iconbox-red:hover .icon i {
  color: #fff;
}

.services .iconbox-red:hover .icon path {
  fill: #ff5828;
}

.services .iconbox-teal i {
  color: #11dbcf;
}

.services .iconbox-teal:hover .icon i {
  color: #fff;
}

.services .iconbox-teal:hover .icon path {
  fill: #11dbcf;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #90c8fc;
  font-size: 26px;
}

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

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

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

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

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  background: #fff;
}

.contact .info i {
  font-size: 20px;
  color: #0563bb;
  float: left;
  width: 44px;
  height: 44px;
  background: #eef7ff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #45505b;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #728394;
}

.contact .info .email,
.contact .info .phone {
  margin-top: 40px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #0563bb;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br+br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email] {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #0678e3;
}

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

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

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #f7f8f9;
  color: #45505b;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 15px 0;
}

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

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

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #0563bb;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: #0678e3;
  color: #fff;
  text-decoration: none;
}

#footer .copyright {
  margin: 0 0 5px 0;
}

#footer .credits {
  font-size: 13px;
}

/* ==================================================
   SKILLS SECTION (Icons + Bars)
================================================== */

#skills {
  padding: 80px 0;
}

.skills-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.skill-icon-item {
  background: #fff;
  padding: 22px 15px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.skill-icon-item i {
  font-size: 38px;
  color: #0563bb;
  margin-bottom: 10px;
}

.skill-icon-item p {
  margin: 0;
  font-weight: 600;
}

.skill-icon-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(5, 99, 187, 0.25);
}

/* Skill bars */
.skills-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-header i {
  color: #0563bb;
  margin-right: 8px;
}

.skill {
  font-weight: 600;
}

.skill-percentage {
  font-size: 14px;
  font-weight: 600;
}

.progress-bar-wrap {
  background: #f2f3f5;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 10px;
  background: linear-gradient(135deg, #0563bb, #00efc7);
  transition: width 1s ease;
}

/* Dark mode */
.dark-mode .skill-icon-item {
  background: #1f1f1f;
}

.dark-mode .progress-bar-wrap {
  background: #333;
}

.dark-mode .skill-icon-item p,
.dark-mode .skill {
  color: #fff;
}

/* ==================================================
   RESEARCH & PUBLICATIONS
================================================== */

#research-publications {
  padding: 80px 0;
}

.research-wrap {
  margin-bottom: 18px;
}

.research-intro {
  font-size: 15px;
  max-width: 900px;
  margin: auto;
}

.research-description {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 10px;
}

.hidden-content {
  display: inline;
}

.toggle-btn {
  background: none;
  border: none;
  color: #0563bb;
  font-weight: 600;
  margin-left: 5px;
  cursor: pointer;
}

.toggle-less {
  color: coral;
}

/* Mobile handling */
@media (max-width: 768px) {
  .hidden-content {
    display: none;
  }
}

/* Dark mode */
.dark-mode .research-description,
.dark-mode .research-intro {
  color: #ddd;
}


/* ==================================================
   SMALL SCREEN FIXES
================================================== */

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

  .skills-content {
    grid-template-columns: 1fr;
  }

  .portfolio-info h4 {
    font-size: 18px;
  }
}

/* =========================================================
   GLOBAL ENHANCEMENTS
========================================================= */

:root {
  --primary: #0563bb;
  --secondary: #00efc7;
  --accent: #6a11cb;
  --soft-bg: #f7f9fc;
  --dark-bg: #0f172a;
  --card-light: #ffffff;
  --card-dark: #1e293b;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 60px rgba(5, 99, 187, 0.35);
}

.section-bg {
  background: linear-gradient(135deg, #f8fbff, #eef3fa);
}

.dark-mode .section-bg {
  background: linear-gradient(135deg, #0b1220, #111827);
}

/* Smooth entrance */
[data-aos] {
  transition-duration: 0.9s !important;
}


/* =========================================================
   SKILLS SECTION — VISUAL + MOTION HEAVY
========================================================= */

#skills {
  position: relative;
  overflow: hidden;
}

#skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 239, 199, 0.15), transparent 60%);
}

.skills-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 35px;
  margin-top: 60px;
}

.skill-icon-item {
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
}

.skill-icon-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-icon-item:hover::before {
  opacity: 0.12;
}

.skill-icon-item:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: var(--shadow-hover);
  z-index: 1 !important;
}

.skill-icon-item i {
  font-size: 44px;
  color: var(--primary);
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}

.skill-icon-item:hover i {
  transform: rotate(-6deg) scale(1.15);
}

.skill-icon-item p {
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Tooltip */
.skill-icon-item::after {
  content: attr(data-tooltip);
  position: absolute;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.skill-icon-item:hover::after {
  opacity: 1;
}

/* Progress bars */
.skill-item {
  margin-bottom: 28px;
}

.progress-bar-wrap {
  background: #e6ebf3;
  height: 12px;
  border-radius: 30px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: fillBar 1.8s forwards;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--bar-width); }
}

/* Dark mode */
.dark-mode .skill-icon-item {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.dark-mode .progress-bar-wrap {
  background: #334155;
}


/* =========================================================
   PORTFOLIO — PREMIUM CARD EXPERIENCE
========================================================= */

#portfolio {
  position: relative;
}

#portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, rgba(106, 17, 203, 0.15), transparent 55%);
}

.portfolio-filters li {
  background: linear-gradient(135deg, #e8eef7, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(5, 99, 187, 0.15);
}

.portfolio-filters li.active,
.portfolio-filters li:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.portfolio-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.portfolio-wrap:hover {
  transform: translateY(-14px) rotateX(6deg);
}

.portfolio-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 99, 187, 0.85),
    rgba(0, 0, 0, 0.85)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio-info {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.portfolio-wrap:hover .portfolio-info {
  opacity: 1;
  transform: translateY(0);
}

.tech-badge {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 6px 14px rgba(0, 239, 199, 0.35);
}

.portfolio-links a {
  transition: transform 0.3s ease;
}

.portfolio-links a:hover {
  transform: scale(1.3) rotate(10deg);
}

/* =========================================================
   MOBILE POLISH
========================================================= */

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

  .portfolio-wrap:hover {
    transform: none;
  }
}
/* =========================================================
   COLOR SYSTEM (MULTI-COLOR PALETTE)
========================================================= */

:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #10b981;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;
  --yellow: #eab308;
  --gray: #64748b;
}

/* =========================================================
   PORTFOLIO FILTERS — CLICK FIX + COLORS
========================================================= */

#portfolio {
  position: relative;
  z-index: 1;
}

#portfolio * {
  pointer-events: auto;
}

.portfolio-filters {
  position: relative;
  z-index: 100;
}

.portfolio-filters li {
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
  border: 1px solid #e2e8f0;
}

/* Individual filter colors */
.portfolio-filters li[data-filter="*"] {
  border-color: var(--gray);
}

.portfolio-filters li[data-filter=".react"] {
  border-color: var(--cyan);
}

.portfolio-filters li[data-filter=".ai"] {
  border-color: var(--purple);
}

.portfolio-filters li[data-filter=".frontend"] {
  border-color: var(--blue);
}

.portfolio-filters li[data-filter=".backend"] {
  border-color: var(--green);
}

.portfolio-filters li:hover,
.portfolio-filters li.active {
  color: #fff;
  transform: translateY(-3px);
}

.portfolio-filters li[data-filter="*"]:hover,
.portfolio-filters li[data-filter="*"].active {
  background: linear-gradient(135deg, var(--gray), #475569);
}

.portfolio-filters li[data-filter=".react"]:hover,
.portfolio-filters li[data-filter=".react"].active {
  background: linear-gradient(135deg, var(--cyan), #0e7490);
}

.portfolio-filters li[data-filter=".ai"]:hover,
.portfolio-filters li[data-filter=".ai"].active {
  background: linear-gradient(135deg, var(--purple), #6d28d9);
}

.portfolio-filters li[data-filter=".frontend"]:hover,
.portfolio-filters li[data-filter=".frontend"].active {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
}

.portfolio-filters li[data-filter=".backend"]:hover,
.portfolio-filters li[data-filter=".backend"].active {
  background: linear-gradient(135deg, var(--green), #047857);
}

/* =========================================================
   PORTFOLIO CARDS — FIX OVERLAY BLOCKING
========================================================= */

.portfolio-wrap {
  position: relative;
  overflow: hidden;
}

.portfolio-wrap::before {
  pointer-events: none; /* IMPORTANT FIX */
  z-index: 1;
}

.portfolio-info {
  z-index: 2;
  pointer-events: none;
}

.portfolio-links a {
  pointer-events: auto;
}

/* =========================================================
   SHOW / HIDE BUTTON (OPTIONAL STYLING SAFETY)
========================================================= */

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile emphasis */
@media (max-width: 768px) {
  .toggle-btn {
    padding: 6px 14px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
  }
}

@media (max-width: 768px) {

  /* Hidden state */
  .hidden-content {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }

  /* 🔥 CRITICAL FIX:
     If JS sets display:block → SHOW IT */
  .hidden-content[style*="display: block"] {
    display: block !important;
    opacity: 1;
    max-height: 2000px;
    margin-top: 16px;
    padding: 18px 22px;
  }
}
/* =========================================================
   TECH STACK PILLS — MULTI COLOR
========================================================= */

.tech-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
}

/* Technology-based colors */
.tech-badge.react {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.tech-badge.js {
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #1e293b;
}

.tech-badge.html {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.tech-badge.css {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.tech-badge.python {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.tech-badge.ai {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.tech-badge.backend {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.tech-badge.frontend {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.tech-badge.sql {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

/* =========================================================
   DARK MODE FIXES
========================================================= */

.dark-mode .portfolio-filters li {
  background: #020617;
  color: #cbd5f5;
  border-color: #334155;
}

.dark-mode .portfolio-wrap::before {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.88),
    rgba(2, 6, 23, 0.94)
  );
}

/* =========================================================
   1️⃣ PORTFOLIO FILTERS — LIGHT PASTEL COLORS
========================================================= */

.portfolio-filters li {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* Hover + Active — LIGHT COLORS */
.portfolio-filters li[data-filter="*"]:hover,
.portfolio-filters li[data-filter="*"].active {
  background: #e2e8f0;
  color: #0f172a;
}

.portfolio-filters li[data-filter=".react"]:hover,
.portfolio-filters li[data-filter=".react"].active {
  background: #cffafe;
  color: #0e7490;
}

.portfolio-filters li[data-filter=".ai"]:hover,
.portfolio-filters li[data-filter=".ai"].active {
  background: #ede9fe;
  color: #6d28d9;
}

.portfolio-filters li[data-filter=".frontend"]:hover,
.portfolio-filters li[data-filter=".frontend"].active {
  background: #dbeafe;
  color: #1d4ed8;
}

.portfolio-filters li[data-filter=".backend"]:hover,
.portfolio-filters li[data-filter=".backend"].active {
  background: #dcfce7;
  color: #047857;
}

/* =========================================================
   2️⃣ SKILLS — MULTI-COLOR ICONS + CARDS
========================================================= */

/* Icon color mapping */
.skill-icon-item:nth-child(1) i { color: #7c3aed; } /* AI/ML */
.skill-icon-item:nth-child(2) i { color: #0ea5e9; } /* NLP */
.skill-icon-item:nth-child(3) i { color: #e11d48; } /* Web */
.skill-icon-item:nth-child(4) i { color: #16a34a; } /* Data */
.skill-icon-item:nth-child(5) i { color: #f97316; } /* C++ */
.skill-icon-item:nth-child(6) i { color: #2563eb; } /* Java */
.skill-icon-item:nth-child(7) i { color: #22c55e; } /* Node */
.skill-icon-item:nth-child(8) i { color: #38bdf8; } /* React */
.skill-icon-item:nth-child(9) i { color: #64748b; } /* .NET */
.skill-icon-item:nth-child(10) i { color: #14b8a6; } /* Testing */

/* Hover gradient per card */
.skill-icon-item:hover {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.dark-mode .skill-icon-item:hover p {
  color: #111 !important;
}

/* =========================================================
   3️⃣ SKILLS BAR — 2 COLUMN GRID (FIX)
========================================================= */

.skills-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  margin-top: 40px;
}

/* Individual bar colors */
.skill-item:nth-child(1) .progress-bar {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.skill-item:nth-child(2) .progress-bar {
  background: linear-gradient(90deg, #0ea5e9, #67e8f9);
}

.skill-item:nth-child(3) .progress-bar {
  background: linear-gradient(90deg, #16a34a, #86efac);
}

.skill-item:nth-child(4) .progress-bar {
  background: linear-gradient(90deg, #2563eb, #93c5fd);
}

.skill-item:nth-child(5) .progress-bar {
  background: linear-gradient(90deg, #f97316, #fdba74);
}

.skill-item:nth-child(6) .progress-bar {
  background: linear-gradient(90deg, #14b8a6, #5eead4);
}

/* Progress wrapper */
.progress-bar-wrap {
  background: #e5e7eb;
  border-radius: 999px;
}

/* =========================================================
   RESPONSIVE FIX
========================================================= */

@media (max-width: 768px) {
  .skills-content {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESEARCH PUBLICATIONS — HIDDEN CONTENT SUBSECTION
========================================================= */

/* Main research block safety */
.research-wrap {
  display: block;
}

/* Intricate subsection styling */
.hidden-content {
  display: block;
  margin-top: 18px;
  padding: 18px 22px;

  /* Visual separation */
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-left: 4px solid #6366f1;
  border-radius: 12px;

  /* Typography */
  font-size: 14px;
  line-height: 1.7;
  color: #334155;

  /* Containment */
  position: relative;
}

/* Decorative accent */
.hidden-content::before {
  content: "Details";
  position: absolute;
  top: -10px;
  left: 16px;
  background: #6366f1;
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

/* Lists inside hidden content */
.hidden-content ul {
  padding-left: 18px;
  margin-top: 10px;
}

.hidden-content li {
  margin-bottom: 6px;
}

/* Code / inline highlights */
.hidden-content code {
  background: #e0e7ff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

/* Links */
.hidden-content a {
  color: #4f46e5;
  font-weight: 600;
}

/* ===============================
   INTERACTION SAFETY
================================ */

/* Ensure hover overlay does NOT capture hidden content */
.research-hover-content {
  pointer-events: none;
}

.hidden-content,
.hidden-content * {
  pointer-events: auto;
}

/* =========================================================
   DARK MODE — PORTFOLIO & RESEARCH TEXT FIX
========================================================= */

/* Portfolio overlay text is white by default now — dark mode keeps it white */
.dark-mode .portfolio-info h4,
.dark-mode .portfolio-info p {
  color: #fff;
}

/* Research Publications - Dark Mode */
.dark-mode .portfolio-wrap .portfolio-info h4,
.dark-mode .portfolio-wrap .portfolio-info p {
  color: #fff;
}

/* Additional styling for tech badges in dark mode */
.dark-mode .tech-badge {
  color: #fff;
}

/* Ensure all text elements in portfolio cards are white in dark mode */
.dark-mode .portfolio-wrap:hover .portfolio-info {
  color: #fff;
}

.dark-mode .portfolio-wrap:hover .portfolio-info h4,
.dark-mode .portfolio-wrap:hover .portfolio-info p {
  color: #fff;
}

/* Research section specific */
.dark-mode #research-publications .portfolio-info h4,
.dark-mode #research-publications .portfolio-info p {
  color: #fff;
}

.dark-mode #research-publications .portfolio-wrap .portfolio-info h4,
.dark-mode #research-publications .portfolio-wrap .portfolio-info p {
  color: #fff;
}