/* Custom styles & theme enhancements for Yayat Ruhiat Portfolio */

:root {
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --accent: #10b981;
  --jenius-orange: #f59e0b;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Glassmorphism */
.glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Glow gradient effects */
.glow-primary {
  box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.35);
}

.glow-card:hover {
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Custom animated gradient border */
.gradient-border {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(60deg, #3b82f6, #06b6d4, #10b981, #6366f1);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  padding: 2px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

/* Badges & Pills */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
}

.badge-tech:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

/* Code font */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Toast Notification */
#toast {
  visibility: hidden;
  min-width: 260px;
  background-color: #1e293b;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 18px;
  position: fixed;
  z-index: 1000;
  bottom: 30px;
  right: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Profile image styling */
.profile-frame {
  position: relative;
}
.profile-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #10b981);
  border-radius: 28px;
  z-index: -1;
  opacity: 0.75;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}
.profile-frame:hover::before {
  opacity: 1;
  filter: blur(14px);
}

/* Language Switcher Active Pill */
.lang-pill {
  transition: background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

/* Body fade-in transition when language switches */
body.lang-switching {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
body {
  transition: opacity 0.15s ease;
  opacity: 1;
}

/* Smooth section fade-in on load */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

/* Skill badge hover lift */
.badge-tech {
  transition: all 0.2s ease;
  cursor: default;
}
.badge-tech:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.35);
}

/* Filter item transition */
.filter-item {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Printing optimization */
@media print {
  header, footer, #contact-form, .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

