/* Custom CSS Classes - 5S Organization */

/* Container Classes */
.container-custom { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Section Spacing */
.section-spacing { padding: 5rem 0; }

/* Card Classes */
.card-rounded { border-radius: 1rem; }
.card-shadow { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card-large { padding: 1.5rem; }
.card-badge {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}
.card-preview {
  width: 100%;
  height: 8rem;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.skill-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  min-width: 140px;
  max-width: 170px;
  flex: 0 0 auto;
}
.skill-card img {
  max-width: 100%;
}
.skill-badge {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  text-align: center;
  font-weight: 600;
  padding: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary,
.btn-secondary,
.btn-neon {
  border-radius: 0.75rem;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  padding: 0.75rem 1.5rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #475569;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.btn-neon {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(251, 146, 60, 0.4);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.22);
  text-shadow: 0 0 4px rgba(251, 146, 60, 0.16);
}
.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.32);
  background: rgba(251, 146, 60, 0.2);
  color: #ffffff;
}

/* Utility Classes */
.text-gradient { background: linear-gradient(135deg, #3b82f6, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.glass-effect { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Button Classes */
.btn-primary { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: #475569; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; border: 1px solid rgba(148, 163, 184, 0.2); }
.btn-secondary:hover { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

/* Logo Sizes */
.logo-small {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-large {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Sub-sections for skills */
.sub-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  flex: none;
}

.sub-section:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.sub-section h3 {
  margin: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sub-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.sub-items.ide-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.sub-items.ide-scroll::-webkit-scrollbar {
  height: 8px;
}

.sub-items.ide-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
}

@media (max-width: 900px) {
  .sub-section {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-section h3 {
    margin-bottom: 1rem;
  }
}

.sub-section .flex {
  margin-bottom: 0;
}
.btn-neon { background: rgba(251, 146, 60, 0.15); color: #fb923c; padding: 0.35rem 0.8rem; border-radius: 9999px; font-weight: 700; font-size: 0.8rem; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; border: 1px solid rgba(251, 146, 60, 0.4); box-shadow: 0 0 12px rgba(251, 146, 60, 0.22); text-shadow: 0 0 4px rgba(251, 146, 60, 0.16); }
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(251, 146, 60, 0.32); background: rgba(251, 146, 60, 0.2); color: #ffffff; }

/* Text Utilities */
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Navigation */
#menu-toggle { display: none; }
#menu-toggle:checked ~ nav { display: block; }
@media (min-width: 768px) { #menu-toggle:checked ~ nav { display: flex; } }

/* Animations */
.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-up { animation: slideUp 0.6s ease-out; }
.animate-pulse-slow { animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

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