/* ==============================================
   SKILLS SECTION - COMMAND LINE EXECUTION AESTHETIC
   Each skill appears as a successfully installed package
   ============================================== */

/* Skills Section - Using readable typography */
.skills-terminal {
  padding: 4rem 0;
  font-family: var(--font-body);
  position: relative;
}

/* Header */
.skills-terminal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-terminal-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, #00ff41 0%, #00d4aa 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.skills-terminal-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Space Mono', monospace;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* Container */
.skills-terminal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tab Navigation */
.terminal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0;
  border-bottom: 2px solid rgba(0, 255, 65, 0.2);
  position: relative;
}

.terminal-tabs::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #00ff41, #00d4aa);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Tab Button */
.terminal-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  margin-bottom: -2px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.terminal-tab i {
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-tab:hover {
  color: #00ff41;
  background: rgba(0, 255, 65, 0.05);
}

.terminal-tab:hover i {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.6));
}

/* Active Tab */
.terminal-tab.active {
  color: #00ff41;
  border-bottom-color: #00ff41;
  background: rgba(0, 255, 65, 0.08);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.terminal-tab.active i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.7));
}

/* Content Area */
.terminal-content {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0 12px 12px 12px;
  padding: 2.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle noise texture for terminal feel */
.terminal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  border-radius: 0 12px 12px 12px;
  pointer-events: none;
  z-index: 1;
}

/* Panel */
.terminal-panel {
  animation: terminalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

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

/* Skills Grid */
.terminal-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Skill Card - Command Line Output Style */
.terminal-skill-card {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.04) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-left: 3px solid #00ff41;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
}

/* Animated gradient background on hover */
.terminal-skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.terminal-skill-card:hover::before {
  opacity: 1;
}

/* Staggered entrance animation */
.terminal-skill-card {
  animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.terminal-skill-card:nth-child(1) { animation-delay: 0.05s; }
.terminal-skill-card:nth-child(2) { animation-delay: 0.1s; }
.terminal-skill-card:nth-child(3) { animation-delay: 0.15s; }
.terminal-skill-card:nth-child(4) { animation-delay: 0.2s; }
.terminal-skill-card:nth-child(5) { animation-delay: 0.25s; }
.terminal-skill-card:nth-child(6) { animation-delay: 0.3s; }
.terminal-skill-card:nth-child(7) { animation-delay: 0.35s; }
.terminal-skill-card:nth-child(8) { animation-delay: 0.4s; }
.terminal-skill-card:nth-child(9) { animation-delay: 0.45s; }
.terminal-skill-card:nth-child(n+10) { animation-delay: 0.5s; }

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

.terminal-skill-card:hover {
  border-left-width: 5px;
  border-color: rgba(0, 212, 170, 0.4);
  border-left-color: #00d4aa;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  transform: translateX(4px);
  box-shadow:
    0 8px 24px rgba(0, 255, 65, 0.15),
    0 0 40px rgba(0, 255, 65, 0.1);
}

/* Terminal Prompt Symbol */
.terminal-prompt {
  color: #00ff41;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  animation: promptBlink 2s infinite;
}

@keyframes promptBlink {
  0%, 49%, 100% {
    opacity: 1;
  }
  50%, 99% {
    opacity: 0.7;
  }
}

/* Skill Content Container */
.terminal-skill-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Icon */
.terminal-skill-icon {
  font-size: 1.5rem;
  color: #06B6D4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.terminal-skill-card:hover .terminal-skill-icon {
  color: #00d4aa;
  transform: rotate(-8deg) scale(1.15);
  filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.6));
}

/* Skill Name */
.terminal-skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  position: relative;
}

.terminal-skill-card:hover .terminal-skill-name {
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

/* Status Indicator - Success Checkmark */
.terminal-status {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.terminal-check {
  width: 20px;
  height: 20px;
  color: #00ff41;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.4));
}

.terminal-skill-card:hover .terminal-check {
  opacity: 1;
  transform: scale(1.2) rotate(360deg);
  filter: drop-shadow(0 0 12px rgba(0, 255, 65, 0.8));
}

/* Blinking cursor effect after skill name on hover */
.terminal-skill-name::after {
  content: '▊';
  color: #00ff41;
  opacity: 0;
  margin-left: 4px;
  animation: cursorBlink 1s step-end infinite;
  transition: opacity 0.3s ease;
}

.terminal-skill-card:hover .terminal-skill-name::after {
  opacity: 1;
}

@keyframes cursorBlink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .skills-terminal {
    padding: 3rem 0;
  }

  .skills-terminal-header {
    margin-bottom: 2rem;
  }

  .skills-terminal-title {
    font-size: 2rem;
  }

  .terminal-tabs {
    gap: 0.125rem;
  }

  .terminal-tab {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  .terminal-tab span {
    display: none;
  }

  .terminal-tab i {
    font-size: 1.125rem;
  }

  .terminal-content {
    padding: 1.5rem;
  }

  .terminal-skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.875rem;
  }

  .terminal-skill-card {
    padding: 1rem;
  }
}

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

  .terminal-skill-icon {
    font-size: 1.25rem;
  }

  .terminal-skill-name {
    font-size: 0.9375rem;
  }
}

/* Accessibility */
.terminal-tab:focus-visible {
  outline: 2px solid #00ff41;
  outline-offset: -2px;
  box-shadow: 0 0 0 4px rgba(0, 255, 65, 0.2);
}

.terminal-skill-card:focus-within {
  border-color: #00d4aa;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .terminal-tab,
  .terminal-skill-card,
  .terminal-skill-icon,
  .terminal-check,
  .terminal-prompt {
    transition: none;
    animation: none;
  }

  .terminal-panel {
    animation: none;
  }

  .terminal-skill-name::after {
    animation: none;
  }
}

/* Dark theme optimizations */
:root.dark .terminal-content {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(0, 255, 65, 0.25);
}

:root.dark .terminal-skill-card {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

/* Light theme adjustments */
:root.light .terminal-tabs {
  border-bottom-color: rgba(6, 182, 212, 0.3);
}

:root.light .terminal-content {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(6, 182, 212, 0.3);
}

:root.light .terminal-skill-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: rgba(6, 182, 212, 0.3);
  border-left-color: #06B6D4;
}

:root.light .terminal-skill-card:hover {
  border-left-color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
}

:root.light .terminal-prompt {
  color: #06B6D4;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

:root.light .terminal-check {
  color: #10B981;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}
