/* Modern Design System for Muminjon.com */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Colors */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #4facfe;
  
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --text-muted: #7f8c8d;
  
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #1a202c;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --card-padding: 2rem;
  --element-spacing: 1.5rem;
  
  /* Borders & Radius */
  --border-radius: 16px;
  --border-radius-large: 24px;
  --border-radius-small: 8px;
  
  /* Shadows */
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-large: 0 16px 40px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

/* Modern Typography Scale */
.text-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.text-body-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
}

/* Modern Gradient Backgrounds */
.gradient-primary {
  background: var(--primary-gradient);
}

.gradient-secondary {
  background: var(--secondary-gradient);
}

.gradient-accent {
  background: var(--accent-gradient);
}

.gradient-dark {
  background: var(--dark-gradient);
}

/* Modern Navigation */
.portfolio-navbar {
  backdrop-filter: blur(20px);
  background: var(--primary-gradient) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.portfolio-navbar.scrolled {
  background: rgba(102, 126, 234, 0.95) !important;
  box-shadow: var(--shadow-medium);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
  font-weight: var(--font-weight-bold) !important;
  font-size: 1.25rem !important;
  color: white !important;
  transition: all var(--transition-fast);
}

.navbar-brand:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link {
  font-weight: var(--font-weight-medium) !important;
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-small);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
  transform: translateY(-2px);
}

/* Modern Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(102, 126, 234, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-large);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card .row {
  min-height: 300px;
}

.hero-card .col-md-6 {
  display: flex;
  align-items: stretch;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.hero-text {
  background: var(--dark-gradient);
  padding: var(--card-padding);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 3;
}

.hero-text * {
  cursor: inherit;
}

.hero-title {
  color: white;
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Modern Buttons */
.btn-modern {
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
  z-index: 10;
  cursor: pointer !important;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all var(--transition-normal);
  pointer-events: none;
  z-index: -1;
}

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

.btn-primary-modern {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

.btn-light-modern {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-light-modern:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Modern Cards */
.modern-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-large);
  padding: var(--card-padding);
  box-shadow: var(--shadow-small);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  transform: rotate(-2deg);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 1;
}

.modern-card:nth-child(2) {
  transform: rotate(1deg);
}

.modern-card:nth-child(3) {
  transform: rotate(-1deg);
}

.modern-card:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: rgba(102, 126, 234, 0.3);
}

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

.modern-card > * {
  position: relative;
  z-index: 2;
}

.modern-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: white;
  font-size: 1.8rem;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.modern-card:hover .modern-card-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.modern-card-title {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  text-align: center;
  transition: all var(--transition-fast);
}

.modern-card:hover .modern-card-title {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.modern-card-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.modern-card:hover .modern-card-text {
  color: var(--text-dark);
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-large);
  padding: var(--card-padding);
  box-shadow: var(--shadow-small);
  transition: all var(--transition-normal);
  height: 100%;
  border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-author-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.testimonial-author-title {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 140px;
  margin-top: 2rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Project Cards */
.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-normal);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all var(--transition-normal);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 1.5rem;
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.project-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-card-title a:hover {
  color: var(--primary-color);
}

/* Footer */
.modern-footer {
  background: var(--dark-gradient);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  color: white;
  transform: translateY(-2px);
}

/* Utility Classes */
.section-padding {
  padding: var(--section-padding) 0;
}

.bg-gradient-light {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(102, 126, 234, 0.08) 100%);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* FRESH VIDEO GALLERY - NO CONFLICTS */
.fresh-video-gallery {
  padding: 2rem 0;
}

.fresh-video-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  cursor: pointer;
  transform: translateY(0px) scale(1) rotateX(0deg) rotateY(0deg);
}

.fresh-video-item:hover {
  transform: translateY(-25px) rotateX(12deg) rotateY(-8deg) scale(1.08);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid #667eea;
}

.fresh-video-thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fresh-video-item:hover .fresh-video-thumb {
  transform: scale(1.15);
}

.fresh-video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.fresh-video-item:hover .fresh-video-info {
  transform: translateY(0);
}

.fresh-video-tag {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.fresh-video-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.fresh-video-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.fresh-video-link:hover {
  text-decoration: none;
}

/* Play Button */
.fresh-video-item::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
  border: 4px solid white;
}

.fresh-video-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(2rem, 6vw, 4rem);
    --card-padding: 1.5rem;
  }
  
  .hero-card {
    margin: 1rem 0;
  }
  
  .btn-modern {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .testimonial-card,
  .modern-card {
    margin-bottom: 1.5rem;
  }
  
  .video-card img {
    height: 220px;
  }
  
  .video-card-overlay {
    padding: 1.5rem;
  }
  
  .video-card {
    margin: 5px;
  }
  
  .video-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-3deg) scale(1.03);
  }
}

/* Modern Project Cards */
.modern-project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-slow);
  height: 100%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.modern-project-card:hover {
  transform: translateY(-12px) rotateY(5deg) rotateX(5deg);
  box-shadow: 0 25px 60px rgba(102, 126, 234, 0.25), 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(102, 126, 234, 0.4);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
  filter: brightness(1.05) contrast(1.05);
}

.modern-project-card:hover .card-image {
  transform: scale(1.1);
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-normal);
}

.modern-project-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay-content {
  text-align: center;
  color: white;
}

.project-category {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
  display: inline-block;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-project {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
}

.btn-project:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(10deg);
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-project.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-project.disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.15);
}

.card-content {
  padding: 1.75rem;
  position: relative;
}

.project-title {
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  transition: all var(--transition-fast);
  line-height: 1.3;
}

.modern-project-card:hover .project-title {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.project-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.modern-project-card:hover .project-description {
  color: var(--text-dark);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all var(--transition-fast);
}

.modern-project-card:hover .tech-tag {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-1px);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Staggered Animation Delays */
.modern-project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.modern-project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.modern-project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.modern-project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.modern-project-card:nth-child(5) {
  animation-delay: 0.5s;
}

.modern-project-card:nth-child(6) {
  animation-delay: 0.6s;
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .hero-text {
    padding: 1.5rem;
  }
  
  .modern-card,
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .modern-project-card:hover {
    transform: translateY(-8px) rotateY(2deg) rotateX(2deg);
  }
  
  .card-image-wrapper {
    height: 200px;
  }
  
  .card-content {
    padding: 1.25rem;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
}

/* Skills & Technologies Section */
.skills-category-title {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
  padding-left: 1rem;
}

.skills-category-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: all var(--transition-slow);
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  transform: translateY(-5px) translateX(8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(102, 126, 234, 0.3);
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 2;
}

.skill-item:hover .skill-icon {
  transform: rotate(360deg) scale(1.1);
}

/* Individual skill icon styles */
.python-icon {
  background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
  box-shadow: 0 8px 20px rgba(55, 118, 171, 0.3);
}

.delphi-icon {
  background: linear-gradient(135deg, #ee1f35 0%, #b31e3f 100%);
  box-shadow: 0 8px 20px rgba(238, 31, 53, 0.3);
}

.rust-icon {
  background: linear-gradient(135deg, #ce422b 0%, #8b2635 100%);
  box-shadow: 0 8px 20px rgba(206, 66, 43, 0.3);
}

.mitre-icon {
  background: linear-gradient(135deg, #d63384 0%, #6f42c1 100%);
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
}

.killchain-icon {
  background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
  box-shadow: 0 8px 20px rgba(253, 126, 20, 0.3);
}

.splunk-icon {
  background: linear-gradient(135deg, #000000 0%, #ff6b35 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.azure-icon {
  background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.3);
}

.docker-icon {
  background: linear-gradient(135deg, #2496ed 0%, #0db7ed 100%);
  box-shadow: 0 8px 20px rgba(36, 150, 237, 0.3);
}

.ai-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.crew-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.forensics-icon {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.flask-icon {
  background: linear-gradient(135deg, #000000 0%, #ffffff 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.openai-icon {
  background: linear-gradient(135deg, #00a67e 0%, #74aa9c 100%);
  box-shadow: 0 8px 20px rgba(0, 166, 126, 0.3);
}

.stripe-icon {
  background: linear-gradient(135deg, #635bff 0%, #00d4ff 100%);
  box-shadow: 0 8px 20px rgba(99, 91, 255, 0.3);
}

.api-icon {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.skill-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.skill-content h4 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  transition: all var(--transition-fast);
}

.skill-item:hover .skill-content h4 {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.skill-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  transition: all var(--transition-fast);
}

.skill-item:hover .skill-content p {
  color: var(--text-dark);
}

/* Responsive design for skills */
@media (max-width: 768px) {
  .skills-category-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .skill-item {
    padding: 1.25rem;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-right: 1rem;
  }

  .skill-content h4 {
    font-size: 1.1rem;
  }

  .skill-content p {
    font-size: 0.85rem;
  }

  .skill-item:hover {
    transform: translateY(-3px);
  }
}

/* Horizontal Skills Grid for API Section */
.skills-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .skills-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skills-grid-horizontal .skill-item {
    padding: 1.25rem;
  }
}

/* TryHackMe Badge Styling - Header Placement */
.thm-badge-container-header {
  margin: 3rem auto 2rem auto;
  padding: 0;
  max-width: 400px;
}

.thm-badge-wrapper-header {
  background: linear-gradient(135deg, #0a0c10 0%, #1a1f26 50%, #212529 100%);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  box-shadow:
    var(--shadow-large),
    0 0 0 1px rgba(0, 255, 65, 0.3),
    0 0 20px rgba(0, 255, 65, 0.2);
  border: 2px solid #00ff41;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.thm-badge-wrapper-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.15), transparent);
  transition: all var(--transition-slow);
}

.thm-badge-wrapper-header:hover::before {
  left: 100%;
}

.thm-badge-wrapper-header:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(0, 255, 65, 0.5),
    0 0 40px rgba(0, 255, 65, 0.3);
  border-color: #00ff41;
}

.thm-badge-title-header {
  color: #00ff41;
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.thm-badge-description-header {
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  font-style: italic;
}

.thm-badge-wrapper-header iframe {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .thm-badge-container-header {
    margin: 2rem auto 1.5rem auto;
    max-width: 100%;
  }

  .thm-badge-wrapper-header {
    padding: 1.5rem;
  }

  .thm-badge-title-header {
    font-size: 1.1rem;
  }

  .thm-badge-description-header {
    font-size: 0.9rem;
  }

  .thm-badge-wrapper-header iframe {
    height: 120px !important;
  }
}