:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(18, 18, 26, 0.8);
  --accent-cyan: #00f0ff;
  --accent-magenta: #ff00a0;
  --accent-green: #39ff14;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.4);
  --glow-magenta: 0 0 30px rgba(255, 0, 160, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background mesh */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 160, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(57, 255, 20, 0.04) 0%, transparent 40%);
  animation: meshMove 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Glassmorphism header */
header {
  padding: 15px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* Animated logo */
.logo {
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta), var(--accent-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 20px;
  transition: all 0.3s;
  position: relative;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  nav a {
    margin-left: 30px;
    font-size: 1rem;
  }
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s;
  box-shadow: var(--glow-cyan);
}

nav a:hover {
  color: var(--accent-cyan);
}

nav a:hover::after {
  width: 100%;
}

/* Hero with floating animation */
.hero {
  padding: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 0;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta), var(--accent-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Advanced buttons with shine effect */
.btn {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  margin: 0 10px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0080ff);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Glassmorphism feature cards */
.features {
  padding: 60px 0;
  position: relative;
}

@media (min-width: 768px) {
  .features {
    padding: 80px 0;
  }
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 35, 0.8));
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-magenta), transparent);
  opacity: 0.5;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.2);
  background: linear-gradient(135deg, rgba(35, 35, 55, 0.95), rgba(25, 25, 45, 0.9));
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Skills section */
.skills-preview {
  padding: 60px 0;
  background: rgba(18, 18, 26, 0.4);
  position: relative;
}

@media (min-width: 768px) {
  .skills-preview {
    padding: 80px 0;
  }
}

.skills-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
}

.skills-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Advanced skill cards */
.skill-card {
  background: rgba(10, 10, 15, 0.8);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.skill-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.skill-card:hover::after {
  opacity: 1;
  left: 100%;
}

.skill-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-cyan);
  transform: translateY(-5px);
}

/* Featured skill cards - subtle glow at rest */
.skill-card.skill-featured {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.06);
}

.skill-card.skill-featured:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 240, 255, 0.3);
  transform: translateY(-5px);
}

.skill-card .price {
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.25rem;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.skill-card .price.free {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.skill-card h3 {
  margin: 15px 0 10px;
  font-size: 1.3rem;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skill-meta {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Complexity tags - subtle color-coded capsules */
.complexity-low {
  background: rgba(57, 255, 20, 0.1);
  color: rgba(57, 255, 20, 0.8);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(57, 255, 20, 0.15);
}

.complexity-medium {
  background: rgba(255, 200, 0, 0.1);
  color: rgba(255, 200, 0, 0.8);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 200, 0, 0.15);
}

.complexity-high {
  background: rgba(255, 100, 60, 0.1);
  color: rgba(255, 100, 60, 0.8);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 100, 60, 0.15);
}

/* Neon tags */
.tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Glowing footer */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--text-secondary);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* Skill detail page enhancements */
.skill-detail {
  padding: 60px 0;
}

.setup-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
}

.setup-box pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  color: var(--accent-cyan);
  font-family: 'Courier New', monospace;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

/* Filter buttons */
.filter-bar {
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-bar .tag {
  cursor: pointer;
  text-decoration: none;
}

.filter-bar .tag.inactive {
  opacity: 0.5;
  background: transparent;
}

/* Loading animation */
@keyframes loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-cyan);
  border-right-color: transparent;
  border-radius: 50%;
  animation: loading 1s linear infinite;
}

/* Skill Detail Page - Mobile Responsive */
.skill-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .skill-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

/* Setup section responsive */
@media (max-width: 768px) {
  .setup-grid {
    grid-template-columns: 1fr !important;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .skill-hero-grid h1 {
    font-size: 2rem;
  }
}
