/* ==========================================================================
   Skills Section - Modern Glassmorphism Redesign
   ========================================================================== */

/* Section Container */
.skills-redesign {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
  overflow: hidden;
}

/* Animated Background Grid */
.skills-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-scroll 20s linear infinite;
  opacity: 0.5;
}

@keyframes grid-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

/* Gradient Orbs */
.skills-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float-orb 20s ease-in-out infinite;
  pointer-events: none;
}

.orb-purple-skills {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-red-skills {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.4) 0%, transparent 70%);
  top: 30%;
  right: -5%;
  animation-delay: 5s;
}

.orb-cyan-skills {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 10s;
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Section Header */
.section-header-skills {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.section-badge-skills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(229, 9, 20, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.section-badge-skills i {
  font-size: 1rem;
  background: linear-gradient(135deg, #7C3AED, #E50914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title-skills {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.title-line-skills {
  display: block;
  color: rgba(255, 255, 255, 0.95);
}

.gradient-text-skills {
  background: linear-gradient(135deg, #7C3AED 0%, #E50914 50%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-flow 8s ease infinite;
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.section-subtitle-skills {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Skills Categories Grid */
.skills-categories-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  position: relative;
  z-index: 10;
}

/* Glassmorphism Card Base */
.glass-card-skills {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category-card {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skill-category-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Category Glow Effects */
.category-glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}

.skill-category-card:hover .category-glow-effect {
  opacity: 1;
}

.healthcare-glow-skills {
  background: radial-gradient(circle, rgba(229, 9, 20, 0.3) 0%, transparent 70%);
}

.education-glow-skills {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
}

.mobile-glow-skills {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
}

.backend-glow-skills {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
}

/* Category Header */
.category-header-modern {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

/* Icon Wrapper with Pulse */
.category-icon-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.category-icon-wrapper i {
  font-size: 24px;
  z-index: 2;
  position: relative;
}

.icon-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  opacity: 0.6;
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

/* Healthcare Theme */
.healthcare-icon-wrapper {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

.healthcare-icon-wrapper i {
  color: #E50914;
}

.healthcare-ring {
  border: 2px solid rgba(229, 9, 20, 0.4);
}

.skill-category-card:hover .healthcare-icon-wrapper {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.5);
}

/* Education Theme */
.education-icon-wrapper {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(229, 9, 20, 0.2));
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.education-icon-wrapper i {
  color: #F97316;
}

.education-ring {
  border: 2px solid rgba(249, 115, 22, 0.4);
}

.skill-category-card:hover .education-icon-wrapper {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
}

/* Mobile Theme */
.mobile-icon-wrapper {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.mobile-icon-wrapper i {
  color: #7C3AED;
}

.mobile-ring {
  border: 2px solid rgba(124, 58, 237, 0.4);
}

.skill-category-card:hover .mobile-icon-wrapper {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
}

/* Backend Theme */
.backend-icon-wrapper {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(124, 58, 237, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.backend-icon-wrapper i {
  color: #06B6D4;
}

.backend-ring {
  border: 2px solid rgba(6, 182, 212, 0.4);
}

.skill-category-card:hover .backend-icon-wrapper {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

/* Category Title Section */
.category-title-section {
  flex: 1;
}

.category-title-modern {
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 4px 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.category-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0;
}

/* Badge Count */
.category-badge-count {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.healthcare-badge {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(124, 58, 237, 0.2));
  color: #E50914;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.education-badge {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(229, 9, 20, 0.2));
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.mobile-badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.backend-badge {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(124, 58, 237, 0.2));
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.skill-category-card:hover .category-badge-count {
  transform: scale(1.15);
}

/* Skills Grid Modern */
.skills-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Skill Pill Modern */
.skill-pill-modern {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pill-text {
  flex: 1;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

/* Pill Level Badge */
.pill-level {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expert-level {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(229, 9, 20, 0.3));
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

/* Healthcare Pills */
.healthcare-pill-skill {
  border-left: 3px solid rgba(229, 9, 20, 0.4);
}

.healthcare-pill-skill .pill-icon {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(124, 58, 237, 0.2));
  color: #E50914;
}

.healthcare-pill-skill:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(124, 58, 237, 0.1));
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.2);
}

.healthcare-pill-skill:hover .pill-icon {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* Education Pills */
.education-pill-skill {
  border-left: 3px solid rgba(249, 115, 22, 0.4);
}

.education-pill-skill .pill-icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(229, 9, 20, 0.2));
  color: #F97316;
}

.education-pill-skill:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(229, 9, 20, 0.1));
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.education-pill-skill:hover .pill-icon {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* Mobile Pills */
.mobile-pill-skill {
  border-left: 3px solid rgba(124, 58, 237, 0.4);
}

.mobile-pill-skill .pill-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  color: #7C3AED;
}

.mobile-pill-skill:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.mobile-pill-skill:hover .pill-icon {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* Backend Pills */
.backend-pill-skill {
  border-left: 3px solid rgba(6, 182, 212, 0.4);
}

.backend-pill-skill .pill-icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(124, 58, 237, 0.2));
  color: #06B6D4;
}

.backend-pill-skill:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(124, 58, 237, 0.1));
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

.backend-pill-skill:hover .pill-icon {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Pill Shine Effect */
.pill-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.skill-pill-modern:hover .pill-shine {
  left: 100%;
}

/* Card Shine Effect */
.card-shine-effect-skills {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.7s ease;
  pointer-events: none;
}

.skill-category-card:hover .card-shine-effect-skills {
  left: 100%;
}

/* ==========================================================================
   Responsive Design - Mobile First
   ========================================================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .skills-redesign {
    padding: 100px 0;
  }

  .section-header-skills {
    margin-bottom: 60px;
  }

  .section-title-skills {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .skills-categories-modern {
    gap: 24px;
  }

  .glass-card-skills {
    padding: 28px;
  }

  .category-title-modern {
    font-size: 1.2rem;
  }

  .skills-grid-modern {
    gap: 10px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .skills-redesign {
    padding: 80px 0;
  }

  .section-header-skills {
    margin-bottom: 50px;
  }

  .section-badge-skills {
    font-size: 0.75rem;
    padding: 8px 16px;
  }

  .section-title-skills {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 16px;
  }

  .section-subtitle-skills {
    font-size: 1rem;
    padding: 0 20px;
  }

  /* Single Column Layout */
  .skills-categories-modern {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .glass-card-skills {
    padding: 24px;
    border-radius: 20px;
  }

  .category-header-modern {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .category-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .category-icon-wrapper i {
    font-size: 20px;
  }

  .category-title-modern {
    font-size: 1.15rem;
  }

  .category-subtitle {
    font-size: 0.8rem;
  }

  .category-badge-count {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* Two Column Grid for Pills on Mobile */
  .skills-grid-modern {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-pill-modern {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .pill-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .pill-text {
    font-size: 0.85rem;
  }

  /* Adjust hover effects for mobile */
  .skill-pill-modern:hover {
    transform: translateX(4px);
  }

  .skill-category-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  /* Reduce orb sizes on mobile */
  .orb-purple-skills,
  .orb-red-skills,
  .orb-cyan-skills {
    width: 300px;
    height: 300px;
    filter: blur(80px);
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .skills-redesign {
    padding: 60px 0;
  }

  .glass-card-skills {
    padding: 20px;
  }

  .category-header-modern {
    flex-wrap: wrap;
  }

  .category-title-section {
    width: calc(100% - 64px);
  }

  .category-badge-count {
    margin-left: auto;
  }

  .skill-pill-modern {
    padding: 10px 14px;
  }

  .pill-text {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .skill-pill-modern {
    padding: 16px 18px;
    min-height: 48px;
  }

  /* Disable complex animations on touch devices */
  .skill-category-card:hover .category-icon-wrapper {
    transform: scale(1.1);
  }

  /* Simplify hover effects */
  .skill-pill-modern:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
  }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .skills-bg-grid {
    animation: none;
  }

  .skills-gradient-orb {
    animation: none;
  }

  .icon-pulse-ring {
    animation: none;
  }

  .gradient-text-skills {
    animation: none;
  }
}

/* ==========================================================================
   Dark Mode Support (Future Enhancement)
   ========================================================================== */

@media (prefers-color-scheme: light) {
  /* Add light mode overrides if needed in the future */
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .skills-redesign {
    background: white;
    color: black;
  }

  .skills-bg-grid,
  .skills-gradient-orb,
  .category-glow-effect,
  .pill-shine,
  .card-shine-effect-skills {
    display: none;
  }

  .glass-card-skills {
    border: 1px solid #ccc;
    box-shadow: none;
    backdrop-filter: none;
  }
}
