/* ============================================
   SKILLS SECTION ENHANCEMENTS
   ============================================ */

/* Skills section container */
.skills-section {
  margin-top: 100px;
  min-height: auto;
  height: auto;
  position: relative;
}

/* Color Gradient Progress Bars */
.progress-wrapper {
  margin-bottom: 20px;
  position: relative;
}

.progress-wrapper .caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.progress-wrapper .progress {
  height: 12px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-wrapper .progress-bar {
  background: linear-gradient(
    90deg,
    #ef3724 0%,
    #ff6b5b 25%,
    #ffd700 50%,
    #ff6b5b 75%,
    #ef3724 100%
  );
  background-size: 200% 100%;
  animation: gradientFlow 3s ease infinite;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-wrapper .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Staggered Bar Reveal Animation */
.progress-wrapper.skill-animate {
  opacity: 0;
  transform: translateX(-30px);
}

.progress-wrapper.skill-animate.revealed {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-wrapper.skill-animate .progress-bar {
  width: 0 !important;
}

.progress-wrapper.skill-animate.revealed .progress-bar {
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* Animated Counter for Percentages */
.skill-percentage {
  font-weight: 600;
  color: #ef3724;
  font-size: 0.9rem;
  min-width: 45px;
  text-align: right;
}

.skill-percentage::after {
  content: '%';
}

/* Skill Icons with Hover Glow */
.skill-icon-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.skill-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  filter: grayscale(0.3);
}

.progress-wrapper:hover .skill-icon {
  filter: grayscale(0) drop-shadow(0 0 8px rgba(239, 55, 36, 0.6));
  transform: scale(1.15);
}

/* Skill name with icon */
.skill-name {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.progress-wrapper:hover .skill-name {
  color: #ef3724;
}

/* Floating Skill Badges */
.floating-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
  justify-content: center;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  transition: all 0.3s ease;
  animation: floatBadge 3s ease-in-out infinite;
  cursor: default;
}

.skill-badge:nth-child(odd) {
  animation-delay: 0.5s;
}

.skill-badge:nth-child(3n) {
  animation-delay: 1s;
}

.skill-badge:nth-child(4n) {
  animation-delay: 1.5s;
}

.skill-badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.25);
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  color: #fff;
}

.skill-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.skill-badge:hover img {
  filter: brightness(0) invert(1);
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Glassmorphism Skill Category Cards */
.skill-category-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure skills section row uses flexbox for equal heights */
.skills-section .row {
  display: flex;
  flex-wrap: wrap;
}

.skills-section .row > [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.skills-section .row > [class*="col-"] .skill-category-card {
  margin-bottom: 0;
  width: 100%;
}

.skill-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.skill-category-card .category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.skill-category-card .category-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.skill-category-card .category-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.skill-category-card .category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

/* Color-coded Categories */
.skill-category-card.category-languages {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.15));
  border-color: rgba(59, 130, 246, 0.3);
}
.skill-category-card.category-languages .category-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.skill-category-card.category-languages .category-title {
  color: #2563eb;
}

.skill-category-card.category-frameworks {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(134, 239, 172, 0.15));
  border-color: rgba(34, 197, 94, 0.3);
}
.skill-category-card.category-frameworks .category-icon {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}
.skill-category-card.category-frameworks .category-title {
  color: #16a34a;
}

.skill-category-card.category-databases {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(216, 180, 254, 0.15));
  border-color: rgba(168, 85, 247, 0.3);
}
.skill-category-card.category-databases .category-icon {
  background: linear-gradient(135deg, #a855f7, #c084fc);
}
.skill-category-card.category-databases .category-title {
  color: #9333ea;
}

.skill-category-card.category-cloud {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(253, 186, 116, 0.15));
  border-color: rgba(249, 115, 22, 0.3);
}
.skill-category-card.category-cloud .category-icon {
  background: linear-gradient(135deg, #f97316, #fb923c);
}
.skill-category-card.category-cloud .category-title {
  color: #ea580c;
}

.skill-category-card.category-tools {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(249, 168, 212, 0.15));
  border-color: rgba(236, 72, 153, 0.3);
}
.skill-category-card.category-tools .category-icon {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}
.skill-category-card.category-tools .category-title {
  color: #db2777;
}

.skill-category-card.category-other {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(94, 234, 212, 0.15));
  border-color: rgba(20, 184, 166, 0.3);
}
.skill-category-card.category-other .category-icon {
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}
.skill-category-card.category-other .category-title {
  color: #0d9488;
}

/* Skill badges inside category cards */
.skill-category-card .floating-badges-container {
  margin: 0;
  justify-content: flex-start;
  flex-grow: 1;
  align-content: flex-start;
}

.skill-category-card .skill-badge {
  animation: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.skill-category-card .skill-badge i {
  font-size: 1.1rem;
}

/* Category-specific badge hover colors */
.category-languages .skill-badge:hover {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.category-frameworks .skill-badge:hover {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.category-databases .skill-badge:hover {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.category-cloud .skill-badge:hover {
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.category-tools .skill-badge:hover {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.category-other .skill-badge:hover {
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

/* Dark mode for category cards */
[data-theme="dark"] .skill-category-card {
  background: rgba(30, 30, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-category-card .category-title {
  color: #fff;
}

[data-theme="dark"] .skill-category-card .skill-badge {
  background: rgba(50, 50, 50, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skill-category-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .skill-category-card .category-header {
    flex-direction: column;
    text-align: center;
  }

  .skill-category-card .floating-badges-container {
    justify-content: center;
  }
}

/* Skill Cards with Flip Animation */
.skill-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.skill-card-flip {
  height: 120px;
  perspective: 1000px;
}

.skill-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

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

.skill-card-front,
.skill-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-card-front {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border: 1px solid rgba(239, 55, 36, 0.1);
}

.skill-card-front img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.skill-card-front .skill-card-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
  text-align: center;
}

.skill-card-back {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  color: white;
  transform: rotateY(180deg);
}

.skill-card-back .skill-level {
  font-size: 2rem;
  font-weight: 700;
}

.skill-card-back .skill-level-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Circular Progress Style (Optional Alternative) */
.circular-progress-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.circular-progress {
  position: relative;
  width: 100px;
  height: 100px;
}

.circular-progress svg {
  transform: rotate(-90deg);
}

.circular-progress circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.circular-progress .bg-circle {
  stroke: rgba(0, 0, 0, 0.1);
}

.circular-progress .progress-circle {
  stroke: url(#progressGradient);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circular-progress.revealed .progress-circle {
  stroke-dashoffset: var(--progress-offset, 283);
}

.circular-progress .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ef3724;
}

.circular-progress .skill-label {
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
  font-size: 0.85rem;
  color: #333;
}

/* Skills Section Heading Enhancement */
/* Skills Section Title - Enhanced */
.skills-section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  /* Custom entrance animation */
  animation: skillsHeaderFadeIn 0.8s ease-out;
}

@keyframes skillsHeaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills-section-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #ef3724; /* Fallback color for browsers that don't support gradient text */
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 50%, #ef3724 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

/* Ensure Skills Section Header is always visible */
.skills-section-header,
.skills-section-header * {
  opacity: 1 !important;
  visibility: visible !important;
}

.skills-section-header.wow {
  visibility: visible !important;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.skills-section-header .title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.skills-section-header .decoration-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ef3724);
  border-radius: 3px;
}

.skills-section-header .decoration-line:last-child {
  background: linear-gradient(90deg, #ef3724, transparent);
}

.skills-section-header .decoration-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.skills-section-header .decoration-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(239, 55, 36, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(239, 55, 36, 0.4); }
}

.skills-section-header .subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

[data-theme="dark"] .skills-section-header .subtitle {
  color: #aaa;
}

/* Decorative background elements */
.skills-section-header::before {
  content: '</>';
  position: absolute;
  top: -20px;
  left: 10%;
  font-size: 4rem;
  color: rgba(239, 55, 36, 0.05);
  font-family: monospace;
  font-weight: bold;
}

.skills-section-header::after {
  content: '{ }';
  position: absolute;
  top: -20px;
  right: 10%;
  font-size: 4rem;
  color: rgba(239, 55, 36, 0.05);
  font-family: monospace;
  font-weight: bold;
}

/* Legacy h1 styling for fallback */
.skills-section h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.skills-section h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ef3724, #ff6b5b);
  border-radius: 3px;
}

.skills-section h4 {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
  color: #ef3724;
}

.skills-section h4::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: linear-gradient(180deg, #ef3724, #ff6b5b);
  border-radius: 3px;
}

/* Language Skills Special Styling */
.language-skill .progress-bar {
  background: linear-gradient(
    90deg,
    #4CAF50 0%,
    #8BC34A 25%,
    #CDDC39 50%,
    #8BC34A 75%,
    #4CAF50 100%
  );
  background-size: 200% 100%;
}

/* Responsive Skills Section */
@media (max-width: 991px) {
  .skill-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }

  .floating-badges-container {
    gap: 8px;
  }

  .skill-badge {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .skills-section h4::before {
    display: none;
  }

  .skill-card-flip {
    height: 100px;
  }

  .circular-progress {
    width: 80px;
    height: 80px;
  }

  .circular-progress .percentage {
    font-size: 1rem;
  }

  .progress-wrapper .progress {
    height: 10px;
  }
}

/* ============================================
   ENHANCED SKILLS - 3D BADGES, TABS, TOOLTIPS
   ============================================ */

/* Skills Tab Navigation */
.skills-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.skills-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skills-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 12px;
}

.skills-tab-btn:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.skills-tab-btn.active {
  color: #fff;
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.3);
}

.skills-tab-btn.active::before {
  opacity: 1;
}

.skills-tab-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.skills-tab-btn.active img {
  filter: brightness(0) invert(1);
}

/* Themify Icon styling for skill tabs */
.skills-tab-btn .skill-tab-icon {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.skills-tab-btn .skill-tab-icon.ti-write {
  color: #3498db;
}

.skills-tab-btn .skill-tab-icon.ti-layout {
  color: #9b59b6;
}

.skills-tab-btn .skill-tab-icon.ti-cloud {
  color: #e67e22;
}

.skills-tab-btn .skill-tab-icon.ti-server {
  color: #27ae60;
}

.skills-tab-btn .skill-tab-icon.ti-settings {
  color: #e74c3c;
}

.skills-tab-btn .skill-tab-icon.ti-world {
  color: #1abc9c;
}

.skills-tab-btn:hover .skill-tab-icon {
  transform: scale(1.15);
}

.skills-tab-btn.active .skill-tab-icon {
  color: #fff !important;
}

/* Tab Content Panels */
.skills-tab-content {
  display: none;
  animation: fadeInTab 0.4s ease;
}

.skills-tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Rotating Skill Badges */
.skill-badge-3d {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-badge-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  border-radius: 16px;
  pointer-events: none;
}

.skill-badge-3d:hover {
  transform: rotateX(-10deg) rotateY(10deg) translateY(-8px) scale(1.05);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(239, 55, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #fff 0%, #ffeae8 100%);
  border-color: rgba(239, 55, 36, 0.3);
}

.skill-badge-3d img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.skill-badge-3d:hover img {
  transform: rotateY(360deg) scale(1.1);
}

/* Skill badge with experience level indicator */
.skill-badge-3d .skill-level {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 10px rgba(239, 55, 36, 0.3);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-badge-3d:hover .skill-level {
  opacity: 1;
  transform: scale(1);
}

/* Category-specific 3D badge colors */
.category-languages .skill-badge-3d:hover {
  background: linear-gradient(135deg, #e8f4ff 0%, #dbeafe 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.category-frameworks .skill-badge-3d:hover {
  background: linear-gradient(135deg, #e8fff0 0%, #dcfce7 100%);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
}

.category-databases .skill-badge-3d:hover {
  background: linear-gradient(135deg, #f5e8ff 0%, #f3e8ff 100%);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.category-cloud .skill-badge-3d:hover {
  background: linear-gradient(135deg, #fff4e8 0%, #ffedd5 100%);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.category-tools .skill-badge-3d:hover {
  background: linear-gradient(135deg, #ffe8f4 0%, #fce7f3 100%);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.category-other .skill-badge-3d:hover {
  background: linear-gradient(135deg, #e8fffa 0%, #ccfbf1 100%);
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 20px 40px rgba(20, 184, 166, 0.2);
}

/* Floating Badges Container for 3D */
.floating-badges-3d {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 0;
  justify-content: center;
}

/* Animated Skill Icon (CSS-based pulse) */
.skill-badge-3d.animated-icon img {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(239, 55, 36, 0.3));
  }
}

/* Staggered animation for badges */
.floating-badges-3d .skill-badge-3d {
  opacity: 0;
  transform: translateY(30px) rotateX(-20deg);
  animation: badgeReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.floating-badges-3d .skill-badge-3d:nth-child(1) { animation-delay: 0.05s; }
.floating-badges-3d .skill-badge-3d:nth-child(2) { animation-delay: 0.1s; }
.floating-badges-3d .skill-badge-3d:nth-child(3) { animation-delay: 0.15s; }
.floating-badges-3d .skill-badge-3d:nth-child(4) { animation-delay: 0.2s; }
.floating-badges-3d .skill-badge-3d:nth-child(5) { animation-delay: 0.25s; }
.floating-badges-3d .skill-badge-3d:nth-child(6) { animation-delay: 0.3s; }
.floating-badges-3d .skill-badge-3d:nth-child(7) { animation-delay: 0.35s; }
.floating-badges-3d .skill-badge-3d:nth-child(8) { animation-delay: 0.4s; }
.floating-badges-3d .skill-badge-3d:nth-child(9) { animation-delay: 0.45s; }
.floating-badges-3d .skill-badge-3d:nth-child(10) { animation-delay: 0.5s; }
.floating-badges-3d .skill-badge-3d:nth-child(11) { animation-delay: 0.55s; }
.floating-badges-3d .skill-badge-3d:nth-child(12) { animation-delay: 0.6s; }

@keyframes badgeReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Enhanced Circular Progress with Animation */
.circular-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 40px auto;
}

.circular-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.circular-progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.circular-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress-ring .progress-bg {
  fill: none;
  stroke: #e9ecef;
  stroke-width: 8;
}

.circular-progress-ring .progress-bar {
  fill: none;
  stroke: url(#circularGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circular-progress-ring.revealed .progress-bar {
  stroke-dashoffset: var(--progress-offset, 339.292);
}

.circular-progress-ring .progress-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circular-progress-ring .progress-percent {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.circular-progress-ring .progress-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
}

.circular-progress-item .progress-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

/* Tippy.js Custom Theme */
.tippy-box[data-theme~='skill'] {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  border-radius: 12px;
  padding: 8px 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tippy-box[data-theme~='skill'] .tippy-arrow {
  color: #1a1a2e;
}

.tippy-box[data-theme~='skill'] .skill-tooltip-content {
  text-align: center;
  padding: 8px;
}

.tippy-box[data-theme~='skill'] .skill-tooltip-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #fff;
}

.tippy-box[data-theme~='skill'] .skill-tooltip-exp {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.tippy-box[data-theme~='skill'] .skill-tooltip-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.tippy-box[data-theme~='skill'] .skill-tooltip-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #ffd700);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Dark Mode for Enhanced Skills */
[data-theme="dark"] .skills-tabs {
  background: rgba(30, 30, 50, 0.7);
}

[data-theme="dark"] .skills-tab-btn {
  color: #aaa;
}

[data-theme="dark"] .skills-tab-btn:hover {
  color: var(--color-primary);
}

[data-theme="dark"] .skill-badge-3d {
  background: linear-gradient(135deg, #2a2a3e 0%, #1e1e2e 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-badge-3d:hover {
  background: linear-gradient(135deg, #3a3a4e 0%, #2e2e3e 100%);
}

[data-theme="dark"] .circular-progress-ring .progress-bg {
  stroke: #2a2a3e;
}

[data-theme="dark"] .circular-progress-item .progress-label {
  color: #fff;
}

/* Responsive for Enhanced Skills */
@media (max-width: 768px) {
  .skills-tabs {
    gap: 8px;
    padding: 8px;
  }

  .skills-tab-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .skills-tab-btn img {
    width: 16px;
    height: 16px;
  }

  .skills-tab-btn .skill-tab-icon {
    font-size: 1rem;
  }

  .skill-badge-3d {
    padding: 10px 14px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .skill-badge-3d img {
    width: 20px;
    height: 20px;
  }

  .floating-badges-3d {
    gap: 10px;
  }

  .circular-progress-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .circular-progress-ring {
    width: 100px;
    height: 100px;
  }

  .circular-progress-ring .progress-percent {
    font-size: 1.2rem;
  }
}

