* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06d6a0;
  --text-light: #ffffff;
  --text-dark: #1f2937;
  --bg-dark: #000000;
  --bg-card: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.5);
}

body {
  height: 100vh;
  font-family: 'Space Grotesk', serif;
  font-optical-sizing: auto;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('asik.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1.1);
  transition: transform 0.3s ease-out;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Particles animation */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.particle:nth-child(1) { width: 10px; height: 10px; top: 10%; left: 20%; animation-duration: 20s; }
.particle:nth-child(2) { width: 15px; height: 15px; top: 60%; left: 80%; animation-duration: 25s; }
.particle:nth-child(3) { width: 8px; height: 8px; top: 80%; left: 10%; animation-duration: 18s; }
.particle:nth-child(4) { width: 12px; height: 12px; top: 30%; left: 70%; animation-duration: 22s; }
.particle:nth-child(5) { width: 6px; height: 6px; top: 50%; left: 40%; animation-duration: 16s; }
.particle:nth-child(6) { width: 14px; height: 14px; top: 20%; left: 60%; animation-duration: 24s; }
.particle:nth-child(7) { width: 9px; height: 9px; top: 70%; left: 30%; animation-duration: 19s; }
.particle:nth-child(8) { width: 11px; height: 11px; top: 40%; left: 90%; animation-duration: 21s; }

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-100px) rotate(180deg); opacity: 0.7; }
  100% { transform: translateY(0) rotate(360deg); opacity: 1; }
}

/* Loading screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  text-align: center;
  color: var(--text-light);
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.loader p {
  font-size: 1.2em;
  letter-spacing: 2px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideInUp 0.3s ease;
}

.ai-chat-widget.active {
  display: flex;
}

.ai-chat-header {
  padding: 20px;
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.ai-info h4 {
  color: var(--text-light);
  font-size: 1.1em;
  margin-bottom: 2px;
}

.ai-status {
  color: var(--accent-color);
  font-size: 0.8em;
}

.ai-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.3s;
}

.ai-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-message {
  background: rgba(99, 102, 241, 0.1);
  padding: 15px;
  border-radius: 15px;
  border: 1px solid var(--border-glow);
  color: var(--text-light);
  font-size: 0.9em;
  line-height: 1.4;
}

.ai-chat-input {
  padding: 20px;
  border-top: 1px solid var(--border-glow);
  display: flex;
  gap: 10px;
}

.ai-chat-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-family: inherit;
}

.ai-chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.ai-chat-input button {
  padding: 12px 15px;
  background: var(--primary-color);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.ai-chat-input button:hover {
  background: var(--secondary-color);
}

.ai-toggle-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

.ai-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.ai-notification {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section utama */
section {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 20px;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

section main {
  padding: 100px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  justify-content: center;
  align-items: center;
}

/* Profile image dengan animasi */
.profile-img-container {
  position: relative;
  margin-bottom: 10px;
}

.profile-img {
  width: 120px;
  border-radius: 50%;
  aspect-ratio: 1;
  box-shadow: 0 0 15px 5px rgba(99, 102, 241, 0.3);
  transition: all 0.4s ease;
  z-index: 2;
  position: relative;
}

.profile-img-border {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  z-index: 1;
  animation: rotate 3s linear infinite;
  opacity: 0.7;
}

.online-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border: 3px solid var(--bg-dark);
  border-radius: 50%;
  z-index: 3;
  animation: ping 2s infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Nama profil */
.profile-name {
  font-weight: 600;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  font-size: 1.8em;
  margin-bottom: 10px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(99, 102, 241, 0.5); }
  to { text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.6); }
}

/* AI Bio */
.ai-bio-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
}

.ai-bio {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9em;
}

.ai-bio i {
  color: var(--accent-color);
}

.refresh-bio-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s;
}

.refresh-bio-btn:hover {
  color: var(--accent-color);
  transform: rotate(180deg);
}

/* Visitor Counter */
.visitor-counter {
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-light);
  font-size: 0.8em;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
}

.visitor-counter i {
  color: var(--accent-color);
  margin-right: 5px;
}

/* Container untuk link */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Link items dengan animasi */
.link-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--border-glow);
  padding: 15px 20px;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 15px;
  gap: 20px;
  transition: all 0.3s ease;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
  transition: left 0.5s;
}

.link-item:hover::before {
  left: 100%;
}

.link-item:hover {
  background-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.link-item i {
  font-size: 1.5em;
  transition: transform 0.3s ease;
  width: 24px;
  text-align: center;
}

.link-item:hover i {
  transform: scale(1.2);
}

.link-item span:not(.link-badge) {
  font-weight: 500;
  font-size: 1.1em;
  flex: 1;
}

.link-badge {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7em;
  font-weight: 600;
}

/* AI Recommendations */
.ai-recommendations {
  width: 100%;
  margin-top: 10px;
}

.ai-section-title {
  color: var(--text-light);
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-section-title i {
  color: var(--accent-color);
}

.ai-links-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Music Player */
.music-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 15px 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  width: 100%;
  margin-top: 20px;
}

.music-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
}

.music-info i {
  color: var(--primary-color);
}

.music-controls {
  display: flex;
  gap: 10px;
}

.music-btn {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid var(--border-glow);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.music-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Footer */
section footer {
  text-align: center;
  margin-top: 30px;
}

section footer p {
  color: var(--text-light);
  font-size: 0.9em;
  padding: 10px;
  text-shadow: 0 0 1px transparent, 0 1px 2px rgba(0, 0, 0, 0.8);
}

section footer p a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

section footer p a:hover {
  color: var(--primary-color);
}

.tech-stack {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8em;
  margin-top: 5px;
}

/* Animasi untuk setiap link item */
.link-item:nth-child(1) { animation: slideInLeft 0.5s ease 0.2s both; }
.link-item:nth-child(2) { animation: slideInLeft 0.5s ease 0.3s both; }
.link-item:nth-child(3) { animation: slideInLeft 0.5s ease 0.4s both; }
.link-item:nth-child(4) { animation: slideInLeft 0.5s ease 0.5s both; }
.link-item:nth-child(5) { animation: slideInLeft 0.5s ease 0.6s both; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsif untuk mobile */
@media (max-width: 480px) {
  section main {
    padding: 60px 10px;
  }
  
  .profile-img {
    width: 100px;
  }
  
  .profile-name {
    font-size: 1.5em;
  }
  
  .link-item {
    padding: 12px 15px;
  }
  
  .link-item i {
    font-size: 1.3em;
  }
  
  .link-item span:not(.link-badge) {
    font-size: 1em;
  }
  
  .ai-chat-widget {
    width: 90vw;
    right: 5vw;
    height: 60vh;
  }
  
  .ai-toggle-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}
/* AI Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-widget.active {
    display: flex;
}

.ai-chat-header {
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
}

.ai-info h4 {
    color: white;
    font-size: 1em;
    margin: 0;
}

.ai-status {
    color: #10b981;
    font-size: 0.7em;
}

.ai-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85em;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
}

.ai-message.ai-message {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.ai-message.user-message {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    display: block;
}

/* Typing Indicator */
.ai-typing {
    background: rgba(99, 102, 241, 0.05) !important;
    border: 1px dashed rgba(99, 102, 241, 0.3) !important;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75em;
}

/* Quick Questions */
.quick-questions {
    margin-top: 10px;
}

.quick-questions-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75em;
    margin-bottom: 8px;
}

.quick-questions-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-question-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.quick-question-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Chat Input */
.ai-chat-input {
    padding: 12px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 0.85em;
}

.ai-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ai-chat-input input:focus {
    outline: none;
    border-color: #6366f1;
}

.ai-chat-input button {
    padding: 10px 12px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.ai-chat-input button:hover:not(:disabled) {
    background: #8b5cf6;
}

.ai-chat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toggle Button */
.ai-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ai-chat-widget {
        width: 90vw;
        right: 5vw;
        height: 60vh;
        bottom: 80px;
    }
    
    .ai-message {
        max-width: 90%;
        font-size: 0.8em;
    }
    
    .quick-question-btn {
        font-size: 0.7em;
        padding: 5px 8px;
    }
    
    .ai-toggle-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
}
.kata-motivasi {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    transition: all 0.5s ease;
}

.motivasi-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.motivasi-container i {
    color: rgba(99, 102, 241, 0.7);
    font-size: 0.9em;
}

.motivasi-text {
    font-style: italic;
    font-size: 0.9em;
    line-height: 1.4;
    opacity: 0.9;
}

.kata-motivasi:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}