#loading-icon.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Pastikan font awesome icon tidak visible */
.fa-spinner.hidden {
  display: none !important;
}

/* Custom animasi untuk smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Hover efek pada proyek */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animasi fade-in untuk sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi stagger untuk project cards */
.project-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:nth-child(1).visible {
  transition-delay: 0.1s;
}
.project-card:nth-child(2).visible {
  transition-delay: 0.2s;
}
.project-card:nth-child(3).visible {
  transition-delay: 0.3s;
}

/* Animasi pulse untuk tombol hero */
.hero-button {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animasi slide-in untuk ikon sosial di footer */
.social-icon {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.social-icon.visible {
  opacity: 1;
  transform: translateX(0);
}
.social-icon:nth-child(1).visible {
  transition-delay: 0.1s;
}
.social-icon:nth-child(2).visible {
  transition-delay: 0.2s;
}
.social-icon:nth-child(3).visible {
  transition-delay: 0.3s;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* New Loading Animation Styles */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  position: relative;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid #3b82f6;
  animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-top: 4px solid #60a5fa;
  animation: spin 1.2s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  border-top: 4px solid #93c5fd;
  animation: spin 1.4s linear infinite;
}

.spinner-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #3b82f6;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}
.progress-fill {
  height: 100%;
  background: #3b82f6;
  width: 0%;
  transition: width 0.3s ease;
}
.loading-text {
  margin-top: 20px;
  font-size: 18px;
  color: #e5e7eb;
  font-weight: 500;
}

/* Sembunyikan body sampai loading selesai */
body.loading {
  overflow: hidden;
}
body.loading > *:not(#preloader) {
  display: none;
}

/* Styles untuk section About yang baru */
.tech-icon {
  transition: all 0.3s ease;
}

.tech-icon:hover {
  transform: translateY(-5px);
}

.skill-bar {
  height: 8px;
  border-radius: 4px;
  background: #374151;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Styles untuk section Projects yang baru */
.project-tech {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 4px;
  margin-bottom: 4px;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Styles untuk section Contact yang baru */
.contact-card {
  background: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

/* Theme Toggle Styles */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: #4b5563;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.theme-toggle.light {
  background: #93c5fd;
}

.theme-toggle-handle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.theme-toggle.light .theme-toggle-handle {
  transform: translateX(30px);
}

/* Light Mode Styles */
body.light-mode {
  background-color: #f9fafb;
  color: #1f2937;
}

body.light-mode .bg-gray-800 {
  background-color: #e5e7eb;
}

body.light-mode .bg-gray-900 {
  background-color: #f3f4f6;
}

body.light-mode .bg-gray-700 {
  background-color: #d1d5db;
}

body.light-mode .text-white {
  color: #1f2937;
}

body.light-mode .text-gray-300 {
  color: #4b5563;
}

body.light-mode .text-gray-400 {
  color: #6b7280;
}

body.light-mode .border-gray-700 {
  border-color: #d1d5db;
}

body.light-mode header {
  background-color: rgba(229, 231, 235, 0.9);
}

body.light-mode .from-gray-800.to-gray-900 {
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
}

body.light-mode .from-gray-800.to-gray-900.br {
  background: linear-gradient(to bottom right, #e5e7eb, #f9fafb);
}

body.light-mode .from-gray-900.to-gray-800.br {
  background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
}

body.light-mode .project-overlay {
  background: rgba(0, 0, 0, 0.5);
}

body.light-mode input,
body.light-mode textarea {
  background-color: #f9fafb;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* PERBAIKAN: Hover effects untuk light mode */
body.light-mode .hover\\:text-blue-400:hover {
  color: #3b82f6 !important;
}

body.light-mode .hover\\:bg-blue-600:hover {
  background-color: #2563eb !important;
}

body.light-mode .hover\\:bg-blue-500:hover {
  background-color: #3b82f6 !important;
}

body.light-mode .hover\\:bg-gray-600:hover {
  background-color: #9ca3af !important;
}

body.light-mode .hover\\:bg-gray-700:hover {
  background-color: #d1d5db !important;
}

body.light-mode .hover\\:bg-red-500:hover {
  background-color: #ef4444 !important;
}

body.light-mode .hover\\:text-blue-300:hover {
  color: #93c5fd !important;
}

/* PERBAIKAN: Mobile menu hover untuk light mode */
body.light-mode #mobileMenu a:hover {
  background-color: #e5e7eb !important;
  color: #3b82f6 !important;
}

body.light-mode #mobileMenu button:hover {
  background-color: #e5e7eb !important;
  color: #1f2937 !important;
}

/* PERBAIKAN: Button hover untuk light mode */
body.light-mode .hero-button:hover {
  background-color: #2563eb !important;
}

body.light-mode .project-overlay a:hover {
  background-color: #2563eb !important;
}

body.light-mode .project-overlay .bg-gray-700:hover {
  background-color: #9ca3af !important;
}

/* PERBAIKAN: Hover tombol menu mobile di light mode */
body.light-mode #mobileMenuButton:hover {
  background-color: #d1d5db !important;
}

/* PERBAIKAN: Overlay mobile menu di light mode */
body.light-mode #menuOverlay {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Perbaikan untuk warna-warna khusus di light mode */
body.light-mode .text-blue-400 {
  color: #3b82f6;
}

body.light-mode .text-purple-400 {
  color: #8b5cf6;
}

body.light-mode .text-green-400 {
  color: #10b981;
}

body.light-mode .text-yellow-400 {
  color: #f59e0b;
}

body.light-mode .text-red-500 {
  color: #ef4444;
}

body.light-mode .bg-blue-500 {
  background-color: #3b82f6;
}

body.light-mode .bg-blue-900 {
  background-color: #1e40af;
}

body.light-mode .bg-green-900 {
  background-color: #065f46;
}

body.light-mode .bg-purple-900 {
  background-color: #5b21b6;
}

body.light-mode .bg-yellow-900 {
  background-color: #92400e;
}

body.light-mode .bg-blue-400 {
  background-color: #60a5fa;
}

body.light-mode .text-blue-300 {
  color: #93c5fd;
}

body.light-mode .text-green-300 {
  color: #6ee7b7;
}

body.light-mode .text-purple-300 {
  color: #c4b5fd;
}

body.light-mode .text-yellow-300 {
  color: #fcd34d;
}

/* Perbaikan untuk project tech tags di light mode */
body.light-mode .project-tech {
  background: rgba(59, 130, 246, 0.15);
  color: #1e40af;
}

/* Perbaikan untuk contact icons di light mode */
body.light-mode .contact-icon.bg-blue-900 {
  background-color: #dbeafe;
}

body.light-mode .contact-icon.bg-green-900 {
  background-color: #d1fae5;
}

body.light-mode .contact-icon.bg-purple-900 {
  background-color: #e9d5ff;
}

body.light-mode .contact-icon.text-blue-400 {
  color: #3b82f6;
}

body.light-mode .contact-icon.text-green-400 {
  color: #10b981;
}

body.light-mode .contact-icon.text-purple-400 {
  color: #8b5cf6;
}

/* Perbaikan untuk social icons di light mode */
body.light-mode .w-10.h-10.rounded-full.bg-gray-700 {
  background-color: #d1d5db;
}

/* Perbaikan untuk skill bars di light mode */
body.light-mode .skill-bar {
  background: #e5e7eb;
}

/* Perbaikan untuk tech icons di light mode */
body.light-mode .tech-icon.bg-gray-700 {
  background-color: #d1d5db;
}

body.light-mode .tech-icon .text-xs {
  color: #4b5563;
}

/* Perbaikan untuk profile badge di light mode */
body.light-mode .absolute.-bottom-2.-right-2.bg-blue-500 {
  background-color: #3b82f6;
  color: white;
}

/* Perbaikan untuk progress bar di preloader di light mode */
body.light-mode .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

/* Perbaikan untuk loading text di light mode */
body.light-mode .loading-text {
  color: #4b5563;
}

/* PERBAIKAN: Light mode untuk mobile menu */
body.light-mode #mobileMenu {
  background: rgba(255, 255, 255, 0.98);
}

body.light-mode #mobileMenu .bg-gray-800 {
  background-color: #f9fafb;
}

body.light-mode #mobileMenu .border-gray-700 {
  border-color: #d1d5db;
}

body.light-mode #mobileMenu .text-gray-300 {
  color: #6b7280;
}

body.light-mode #mobileMenu .text-gray-400 {
  color: #9ca3af;
}

body.light-mode #mobileMenu .text-white {
  color: #1f2937;
}

/* Light Mode Styles untuk Footer */
body.light-mode footer {
  background: linear-gradient(to bottom right, #e5e7eb, #f9fafb);
}

/* ====== PERBAIKAN KHUSUS UNTUK SECTION PROJECTS DI LIGHT MODE ====== */
body.light-mode #projects {
  background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb) !important;
}

/* Project cards background */
body.light-mode .project-card.bg-gray-800 {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb;
}

/* Text colors in project cards */
body.light-mode .project-card .text-gray-300 {
  color: #6b7280 !important;
}

body.light-mode .project-card .text-gray-400 {
  color: #9ca3af !important;
}

/* Project badges/tags */
body.light-mode .project-card .bg-blue-900 {
  background-color: #dbeafe !important;
}

body.light-mode .project-card .text-blue-300 {
  color: #1e40af !important;
}

body.light-mode .project-card .bg-green-900 {
  background-color: #d1fae5 !important;
}

body.light-mode .project-card .text-green-300 {
  color: #065f46 !important;
}

body.light-mode .project-card .bg-purple-900 {
  background-color: #e9d5ff !important;
}

body.light-mode .project-card .text-purple-300 {
  color: #5b21b6 !important;
}

/* Project overlay buttons */
body.light-mode .project-overlay .bg-gray-700 {
  background-color: #9ca3af !important;
}

body.light-mode .project-overlay .bg-gray-700:hover {
  background-color: #6b7280 !important;
}

/* Project tech tags styling */
body.light-mode .project-tech {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #1e40af !important;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Hover effects for project cards in light mode */
body.light-mode .project-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  transform: translateY(-10px);
}

/* View all projects button */
body.light-mode #projects .bg-blue-500 {
  background-color: #3b82f6 !important;
}

body.light-mode #projects .bg-blue-500:hover {
  background-color: #2563eb !important;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  background-color: #10b981;
}

.notification.error {
  background-color: #ef4444;
}

.notification.info {
  background-color: #3b82f6;
}

.notification .close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 12px;
  font-size: 18px;
}

/* PERBAIKAN: Tambahan outline untuk tech icons */
.tech-icon {
  border: 1px solid transparent;
  outline: 2px solid transparent;
}

body.light-mode .tech-icon {
  border: 1px solid #e5e7eb;
  outline: 2px solid #f3f4f6;
}

body:not(.light-mode) .tech-icon {
  border: 1px solid #4b5563;
  outline: 2px solid #374151;
}
