:root {
  --primary-color: #0C00FF; /* Biru Elektrik Baru */
  --secondary-color: #0009c9;
  --accent-color: #FF007A; /* Magenta/Pink terang untuk kontras */
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --bg-dark: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Background Effects */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Mesh Gradient (Optional subtle background) */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: -2;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(12, 0, 255, 0.2) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 0, 122, 0.2) 0%,
      transparent 20%
    );
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.9);
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
  border-bottom: 1px solid rgba(12, 0, 255, 0.1);
}

.navbar-brand {
  color: var(--text-light);
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar .nav-link {
  color: var(--text-gray);
  margin: 0 10px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.highlight {
  color: var(--primary-color) !important;
  text-shadow: 0 0 5px rgba(12, 0, 255, 0.5);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.hero-subtitle {
  color: var(--text-gray);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  position: relative;
}

.hero-title #typewriter {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(12, 0, 255, 0.7);
}

.hero-profession {
  font-size: 2rem;
  color: var(--text-gray);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-description {
  color: var(--text-gray);
  max-width: 500px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Profile Image (DEFAULT/DESKTOP) */
.profile-container {
  width: 400px;
  height: 400px;
  position: relative;
  z-index: 5;
  /* margin-left ini penting untuk layout desktop */
  margin-left: 50px; 
}

.profile-image-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 50px rgba(12, 0, 255, 0.5);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

/* Floating Shapes (Hero background) */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  background: rgba(12, 0, 255, 0.1);
  animation: moveShape 15s infinite alternate;
  filter: blur(15px);
}

/* Social Links */
.social-link {
  display: inline-flex;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--primary-color);
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  margin-right: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(12, 0, 255, 0.3);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(12, 0, 255, 0.5);
}

/* Rotating Skills Input */
.rotating-skills-wrapper {
  margin-bottom: 25px;
}
.rotating-skills .skills-input-container {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 10px;
  background: rgba(12, 0, 255, 0.05);
  border: 2px solid rgba(12, 0, 255, 0.4);
  box-shadow: 0 0 30px rgba(12, 0, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rotating-skills .skills-input-container:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 40px rgba(12, 0, 255, 0.6), inset 0 0 20px rgba(12, 0, 255, 0.1);
}

.skills-icon {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.rotating-text {
  margin: 0 5px;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  min-width: 180px;
  text-align: center;
}

.typing-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
  color: var(--primary-color);
}

/* Sections General */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(12, 0, 255, 0.3);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* About Section */
.about-intro {
  font-size: 1.3rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
}

/* Enhanced Skill Cards */
.skill-card {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 20px;
  padding: 35px;
  margin: 20px 0;
  border: 1px solid rgba(12, 0, 255, 0.2);
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(12, 0, 255, 0.1),
    transparent
  );
  transition: left 0.8s ease;
}

.skill-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(12, 0, 255, 0.3);
}

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

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skill-icon-container {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-right: 15px;
  box-shadow: 0 0 15px rgba(12, 0, 255, 0.6);
}

.skill-card h4 {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0;
}

.skill-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.skill-technologies {
  margin-top: 15px;
}

.skill-tech {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px 5px 5px 0;
  border: 1px solid rgba(12, 0, 255, 0.2);
}

/* Progress Bar */
.skill-experience {
  margin-top: 20px;
}

.experience-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.experience-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(12, 0, 255, 0.8);
}

.experience-text {
  display: block;
  text-align: right;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Project/Gallery Section */
.projects-intro {
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
  color: var(--text-gray) !important;
  max-width: 700px !important;
  margin: 0 auto 4rem !important;
  padding: 0 20px !important;
  font-weight: 400 !important;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(12, 0, 255, 0.5);
}

.project-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 0, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.project-link {
  color: var(--text-light);
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1);
  color: var(--accent-color);
}

.project-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent-color);
  color: var(--text-light);
  padding: 8px;
  border-radius: 5px;
  font-size: 1rem;
  opacity: 0.9;
}

.project-content {
  padding: 20px;
  flex-grow: 1;
}

.project-content h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.project-description {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-tech .tech-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(255, 0, 122, 0.3);
}

.project-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.project-stats .stat-item {
  color: var(--text-gray);
  font-size: 0.85rem;
}

.project-stats .stat-item i {
  color: var(--accent-purple);
  margin-right: 5px;
}

/* Animations */
@keyframes moveShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(200px, 200px) rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ================================================= */
/* START MEDIA QUERIES YANG DIOPTIMALKAN UNTUK MOBILE */
/* ================================================= */

@media (max-width: 992px) {
  /* Diperlukan untuk menimpa CSS desktop */
  .hero-section {
    /* Pastikan Hero Section tidak terlalu tinggi di mobile */
    min-height: auto; 
    padding-top: 100px;
    padding-bottom: 50px;
    text-align: center;
  }
  
  .hero-title {
    /* Kecilkan ukuran font judul di mobile */
    font-size: 3rem; /* Dikoreksi dari 3.5rem agar lebih pas di mobile */
  }

  .hero-profession {
    font-size: 1.5rem;
  }
  
  /* OVERRIDE: Menghilangkan margin dan membatasi ukuran gambar di mobile */
  .profile-container {
    width: 300px;
    height: 300px;
    /* Hilangkan margin-left dan pusatkan di mobile */
    margin: 30px auto 0; 
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Perbaikan Layout Skill Rotasi di Mobile */
  .rotating-skills-wrapper {
      /* Paksakan wrap jika terlalu panjang di mobile */
      flex-wrap: wrap; 
      justify-content: center;
  }

  .skill-intro {
      /* Beri ruang agar intro skill tidak terlalu dekat */
      width: 100%;
      margin-bottom: 10px;
  }
  
  .skill-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  .navbar-toggler {
    border-color: var(--primary-color);
  }
  
  /* Kecilkan ukuran gambar profil sedikit lagi di layar yang sangat kecil */
  .profile-container {
    width: 250px;
    height: 250px;
  }
}
/* ================================================= */
/* END MEDIA QUERIES YANG DIOPTIMALKAN UNTUK MOBILE   */
/* ================================================= */