/* Portfolio Personal - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-up.visible { opacity: 1; transform: translateY(0); }

/* Skills bar */
.skill-bar { height: 8px; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 9999px; transition: width 1.5s ease-out; background: linear-gradient(90deg, #7c3aed, #06b6d4); }

/* Portfolio grid */
.portfolio-item { cursor: pointer; position: relative; overflow: hidden; border-radius: 16px; }
.portfolio-item img { transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(124,58,237,0.9), transparent);
  opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: flex-end; padding: 24px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Filter buttons */
.filter-btn {
  padding: 8px 20px; border-radius: 9999px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.3s; border: 2px solid transparent; background: white; color: #374151;
}
.filter-btn:hover { border-color: #7c3aed; }
.filter-btn.active { background: #7c3aed; color: white; border-color: #7c3aed; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; width: 48px; height: 48px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: white;
  font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-info {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: white; text-align: center; background: rgba(0,0,0,0.6); padding: 12px 24px; border-radius: 12px;
  backdrop-filter: blur(8px);
}

/* Social links */
.social-link {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; background: #f3f4f6; color: #374151;
}
.social-link:hover { background: #7c3aed; color: white; transform: translateY(-2px); }

/* Admin */
.admin-card { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 24px; margin-bottom: 16px; }
.admin-input { width: 100%; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; transition: border-color 0.2s; }
.admin-input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.sidebar-item.active { background: #f5f3ff; color: #7c3aed; border-right: 3px solid #7c3aed; }

.btn-primary { background: #7c3aed; color: white; padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; transition: background 0.2s; }
.btn-primary:hover { background: #6d28d9; }
.btn-secondary { background: #f3f4f6; color: #374151; padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; }
.btn-secondary:hover { background: #e5e7eb; }
.btn-danger { background: #ef4444; color: white; padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; }
.btn-danger:hover { background: #dc2626; }

.toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; padding: 12px 24px; border-radius: 8px; color: white; font-weight: 500; animation: slideIn 0.3s ease; }
.toast-success { background: #7c3aed; }
.toast-error { background: #dc2626; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* WhatsApp floating */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform 0.3s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: white; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-float { animation: pulse-wa 2s infinite; }
.wa-float:hover { animation: none; }

@media (max-width: 768px) {
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}
