@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== VARIABEL ENHANCED ===== */
:root {
  /* Warna profesional */
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --accent: #8B5CF6;
  --accent-dark: #7C3AED;
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --bg-darker: #020617;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --border-color: rgba(255, 255, 255, 0.1);
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-background: -10;
  --z-grid: -9;
  --z-blur: -8;
  --z-content: 1;
  --z-sticky: 10;
  --z-fixed: 50;
  --z-modal: 100;
  --z-tooltip: 200;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== BACKGROUND EFFECTS ENHANCED ===== */
.bg-fixed-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-background);
  background: linear-gradient(-45deg, #0F172A, #1E293B, #1E1B4B, #0F172A);
  background-size: 400% 400%;
  animation: gradient-flow 20s ease infinite;
}

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

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-grid);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  background-position: center center;
}

.bg-blur-effect::before,
.bg-blur-effect::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: var(--z-blur);
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.bg-blur-effect::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: -150px;
  left: -150px;
  animation: float-slow 12s ease-in-out infinite;
}

.bg-blur-effect::after {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent), transparent);
  bottom: -150px;
  right: -150px;
  animation: float-slow 15s ease-in-out infinite reverse;
}

/* ===== ANIMATIONS ENHANCED ===== */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -20px) rotate(5deg); }
  50% { transform: translate(-15px, 15px) rotate(-5deg); }
  75% { transform: translate(15px, 10px) rotate(3deg); }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== LAYOUT CONTAINER ===== */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: var(--z-content);
}

.content-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2rem 1rem;
  position: relative;
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }

.hover-lift {
  transition: transform var(--transition-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
}

.glass-effect {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

/* ===== PROFILE IMAGE ===== */
.profile-img {
  border: 3px solid var(--primary);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.4),
              0 0 60px rgba(79, 70, 229, 0.2);
  transition: all var(--transition-base);
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.6);
}

/* ===== CARDS & COMPONENTS ===== */
.bg-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

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

.link-card {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
  transition: left var(--transition-slow);
}

.link-card:hover::before {
  left: 100%;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
  border-color: var(--primary);
}

.link-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.link-card:hover::after {
  width: 100%;
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
  transition: all var(--transition-base);
  position: relative;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, var(--primary), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.social-icon:hover::before {
  opacity: 0.3;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.1);
  color: var(--primary) !important;
  filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.4));
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-primary::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: left var(--transition-slow);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== VERIFIED BADGE ===== */
.company-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.75rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.verified-badge svg {
  filter: drop-shadow(0 2px 4px rgba(0, 149, 246, 0.5));
}

/* ===== MODALS ENHANCED ===== */
.modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  margin: auto;
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.modal-body {
  padding: 1.5rem;
}

.close {
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.close:hover,
.close:focus {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  transform: rotate(90deg);
}

/* ===== LOADING STATES ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 0.5rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: var(--z-tooltip);
  animation: slideInFromBottom 0.3s ease;
  max-width: 400px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 1.5rem 0.75rem;
  }
  
  .company-name {
    font-size: 1.25rem;
  }
  
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .company-name {
    font-size: 1.125rem;
  }
  
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
}

/* ===== ACCESSIBILITY ===== */
.focus-visible:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .bg-fixed-container,
  .bg-grid-overlay,
  .bg-blur-effect,
  .social-icon,
  .link-card::before,
  .link-card::after {
    display: none !important;
  }
}