.navbar {
  --f-navbar-bg: white;
  height: 4rem;
  background-color: var(--f-navbar-bg);
}
[data-bs-theme="dark"] .navbar {
  --f-navbar-bg: var(--f-gray-800);
}

.btn.btn-bd-primary {
  box-shadow: none;
}

.profile-username {
  opacity: 0.7;
}

.avatar {
  width:40px; 
  height: 40px; 
  cursor: pointer;
  border: 1px solid var(--f-gray-200);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.avatar-icon {
  width: 48px; 
  height: 48px; 
  color: var(--f-gray-400); 
  left: -5px; 
  position: absolute;
}

[data-bs-theme="dark"] .avatar-icon {
  color: var(--f-gray-500);
}
[data-bs-theme="dark"] .avatar {
  border: 1px solid var(--f-gray-700);

}
/*
   * Sidebar
   */

.nav {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 768px) {
  .sidebar .offcanvas-lg {
    position: -webkit-sticky;
    position: sticky;
    top: 64px;
  }

  .sidebar {
    height: calc(100vh - 64px);
  }

  .navbar-search {
    display: block;
  }
}

.sidebar .nav-item {
  margin-top: 8px;
}
.sidebar .nav-link {
  padding: 8px;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--f-sidebar-text);
  border-radius: 4px;
}

.sidebar .nav-link .nav-link-icon {
  color: var(--f-sidebar-icon);
}
.sidebar .nav-link:hover .nav-link-icon {
  color: var(--f-sidebar-text);
}

.sidebar .nav-link:hover {
  background-color: var(--f-sidebar-item-hover-bg);
  color: var(--f-sidebar-item-hover-color);
}

.sidebar .nav-link.active {
  color: var(--f-primary);
}

.sidebar-heading {
  font-size: .75rem;
}

/*
   * Navbar
   */


.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  display: flex;
  gap: 1rem;
}
.brand-image {
  height: 32px;
}


.brand-dark {
  display: none;
}
[data-bs-theme="dark"] .brand-dark{
  display: block;
}
[data-bs-theme="dark"] .brand-light {
  display: none;
}

.navbar .form-control {
  padding: .75rem 1rem;
}

.f-plugin-title {
  font-weight: bold;
  font-size: 24px;
}

.sidebar {
  --f-sidebar-bg: white;
  --f-sidebar-icon: var(--f-gray-700);
  --f-sidebar-text: var(--f-gray-700);
  --f-sidebar-item-hover-bg: var(--f-gray-100);
  --f-sidebar-item-hover-color: var(--f-gray-800);

  position: absolute;

  background-color: var(--f-sidebar-bg);
}
[data-bs-theme="dark"] .sidebar {
  --f-sidebar-bg: var(--f-gray-800);
  --f-sidebar-icon: var(--f-gray-400);
  --f-sidebar-item-hover-bg: var(--f-gray-700);
  --f-sidebar-item-hover-color: var(--f-gray-300);
  --f-sidebar-text: var(--f-gray-400);
}

.main {
  height: calc(100vh - 64px);
  overflow: auto;
  padding-right: 0;
  /* width: calc(100vh - 16rem); */
  /* margin-left: 16rem; */
}

@media (min-width: 768px) {
  .sidebar {
    width: 16rem;
  }

  .main {
    padding-left: 16rem;
  }

}

[data-bs-theme="light"] .bi {
  fill: var(--f-gray-700);
}

[data-bs-theme="dark"] .bi {
  fill: var(--f-gray-500);
}

[data-bs-theme="dark"] .logo-light {
  display: none !important;
}
[data-bs-theme="dark"] .logo-dark {
  display: inline-block !important;
}

/* Muted text colors */
.text-muted {
  color: #9ca3af !important; /* Tailwind gray-400 */
}

/* Tooltip replacement */
.tooltip {
  font-size: 0.875rem;
  background: #111827;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
}

.f-plugin-body {
  padding: 1rem;
}

.f-plugin-body-title {
  font-size: 24px;
  font-weight: bold;
}

/* Content type modal */
.f-plugin-content-type-modal-item {
  display: flex;
  cursor: pointer;
  padding-left: 1.5rem;   
  padding-right: 1.5rem;
  padding-top: 1rem;      
  padding-bottom: 1rem;
  border-radius: 0.5rem;  
  border: 1px solid var(--f-gray-300);
  width: 100%;            
  height: 100%;           
  align-items: center;    
  justify-content: flex-start; 
  gap: 1.5rem;            
  background-color: #ffffff; 
}

.f-plugin-content-type-modal-item:hover {
  background-color: var(--f-gray-200); 
}

[data-bs-theme="dark"] .f-plugin-content-type-modal-item {
  border-color: var(--f-gray-700);      
  background-color: var(--f-gray-800);  
}

[data-bs-theme="dark"] .f-plugin-content-type-modal-item:hover {
  background-color: var(--f-gray-700);  
}

/* ==========================================================================
   JT Portfolio Design System & Showcase Extensions
   ========================================================================== */
:root {
  --portfolio-primary: #6366f1;
  --portfolio-primary-light: #818cf8;
  --portfolio-secondary: #8b5cf6;
  --portfolio-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --portfolio-glow: 0 0 25px rgba(99, 102, 241, 0.35);
  --portfolio-glass-bg: rgba(255, 255, 255, 0.7);
  --portfolio-glass-border: rgba(99, 102, 241, 0.15);
}

[data-bs-theme="dark"] {
  --portfolio-glass-bg: rgba(15, 23, 42, 0.75);
  --portfolio-glass-border: rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: var(--portfolio-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--portfolio-glass-border);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero-wrapper {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-greeting {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-size: 1.5rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-avatar-box {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(25px);
  z-index: 1;
}

.hero-avatar-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.3);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-avatar-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}

/* Badges & Tags */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .skill-tag {
  color: #a5b4fc;
}

.skill-tag:hover {
  background: #6366f1;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Project Card */
.portfolio-project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-project-card:hover .portfolio-project-img {
  transform: scale(1.04);
}

/* Social Icons */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #6366f1;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

[data-bs-theme="dark"] .social-btn {
  color: #c7d2fe;
}

.social-btn:hover {
  background: var(--portfolio-gradient);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-gradient {
  background: var(--portfolio-gradient);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  transition: all 0.25s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   Certificates Gallery & Lightbox
   ========================================================================== */
.cert-card {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--portfolio-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--portfolio-glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px -10px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.4);
}

.cert-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-img {
  transform: scale(1.05);
}

.cert-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cert-filter-btn {
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.08);
  color: var(--f-content, #4b5563);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

[data-bs-theme="dark"] .cert-filter-btn {
  color: #c7d2fe;
}

.cert-filter-btn:hover,
.cert-filter-btn.active {
  background: var(--portfolio-gradient);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Lightbox Modal */
.cert-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-lightbox.active {
  display: flex;
}

.cert-lightbox-dialog,
.cert-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-lightbox-image,
.cert-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.cert-lightbox-caption,
.cert-lightbox-title {
  color: #f3f4f6;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.cert-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.cert-lightbox-close:hover {
  background: #ef4444;
  transform: rotate(90deg);
}
