/* Global Variabel */
:root {
  --bg-dark: #090613;
  --bg-dark-secondary: #151515;
  --bg-gradient-secondary: #5a6167;

  --text-white: #ffffff;
  --text-light: #f5f5f5;
  --text-muted: #b0b0b0;

  --accent-orange: #ff6b35;
  --rainbow-gradient: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #ff00c8, #ff0000);

  /* --- Transparan --- */
  --glass-bg-low: rgba(255, 255, 255, 0.03);
  --glass-bg-med: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.3);
  --shadow-glow: rgba(0, 0, 0, 0.5);
}

/* Setting halaman dan background gradient */
body {
  background: var(--bg-dark);
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-gradient-secondary));
  min-height: 100vh;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
}

.text-gradient {
  background: linear-gradient(to right, var(--accent-orange), #d62976);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.text-justify {
  text-align: justify;
}

/* Efek ajaib ngetik */
.typing-cursor {
  display: inline-block;
  width: 3px;
  color: var(--text-light);
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

/* Animasi blink kursor (extend efek ngetik) */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Navbar transparan */
.navbar-custom {
  background-color: rgba(9, 6, 19, 0.8);
  backdrop-filter: blur(10px);
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted) !important;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin-left: 20px;
  transition: 0.3s;
}

/* Hover efek pada link menu */
.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange) !important;
}

/* Custom button RGB */
.btn-glow-base {
  position: relative;
  padding: 12px 35px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  z-index: 1;
}

/* --- Tombol Kiri --- */
.btn-filled {
  background-color: var(--text-white);
  color: #000000;
  border: 2px solid var(--text-white);
}

/* Saat hover button jadi full RGB */
.btn-filled:hover {
  color: var(--text-white);
  border-color: transparent;
  background: var(--rainbow-gradient);
  background-size: 400%;
  animation: glowing 20s linear infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* --- Tombol Kanan (garis luar) --- */
.btn-outlined {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

/* Saat hover garis luar button bakalan RGB */
.btn-outlined:hover {
  color: var(--text-white);
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box, var(--rainbow-gradient) border-box;
  background-size: 400%;
  animation: glowing 20s linear infinite;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Filter Buttons (Portfolio) */
.filter-btn {
  border-radius: 50px !important;
  padding: 8px 25px;
  margin: 0 5px;
  border: 1px solid var(--glass-border-strong);
  color: var(--text-muted);
  background: transparent;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

/* Submit Button (Contact Form) */
.btn-submit-custom {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  text-transform: capitalize;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-submit-custom:hover {
  background-color: #e05e2e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.5);
}

.btn-submit-custom:active {
  transform: translateY(0);
}

/* Social Buttons (Contact Page) */
.social-btn {
  width: 45px;
  height: 45px;
  background: transparent;
  border: 1px solid var(--glass-border-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all 0.3s;
  font-size: 1.2rem;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--accent-orange);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
  border-color: var(--accent-orange);
}

/* Animasi RGB */
@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* Cards style */
.feature-card {
  position: relative;
  background: var(--glass-bg-low);
  border: 2px solid var(--glass-border);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.4s ease;
  height: 100%;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-dark-secondary), var(--bg-dark-secondary)) padding-box, var(--rainbow-gradient) border-box;
  background-size: 400%;
  animation: glowing 20s linear infinite;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-orange);
  margin-bottom: 20px;
  transition: 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.3);
  text-shadow: 0 0 15px var(--accent-orange);
}

.feature-title {
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 15px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.portfolio-card {
  position: relative;
  background: var(--glass-bg-low);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  z-index: 1;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2px;
  background: var(--rainbow-gradient);
  background-size: 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.portfolio-card:hover::before {
  opacity: 1;
  animation: glowing 20s linear infinite;
}

.portfolio-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

.portfolio-card:hover .card-img-top {
  transform: scale(1.1);
}

.portfolio-card .card-body {
  padding: 1.5rem;
  background: transparent;
  position: relative;
  z-index: 5;
}

.contact-info-card,
.contact-form-wrapper {
  background: var(--glass-bg-low);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: var(--glass-bg-med);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

/* Form Section */
.custom-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  border-radius: 10px;
  padding: 12px 15px;
}

.custom-input:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-orange);
  color: var(--text-white);
  box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.custom-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.custom-input option {
  background-color: #1a1a1a;
  color: white;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
}

.form-check-input:checked {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

/* =========================================
   SECTIONS: HERO & ABOUT
   ========================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: transparent;
}

.profile-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  box-shadow: 0 0 30px var(--shadow-glow);
  margin-bottom: 2rem;
}

.about-img-wrapper {
  position: relative;
  padding: 10px;
  border: 2px solid var(--glass-border-strong);
  border-radius: 20px;
  display: inline-block;
}

.about-img {
  filter: grayscale(20%);
  transition: all 0.5s ease;
}

.about-img-wrapper:hover .about-img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Acordion dan progress bar style */
.custom-accordion .accordion-item {
  background-color: transparent;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-light);
}

.custom-accordion .accordion-button {
  background-color: var(--glass-bg-low);
  color: var(--text-white);
  box-shadow: none;
  border-radius: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: var(--glass-bg-med);
  color: var(--accent-orange);
  box-shadow: none;
}

.custom-accordion .accordion-button::after {
  filter: invert(1);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(320deg);
}

.accordion-body {
  background: transparent;
  padding-top: 0;
  padding-bottom: 20px;
  font-size: 0.95rem;
}

.custom-progress {
  background-color: transparent !important;
  border: 2px solid #ffffff;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.gradient-bar {
  background: var(--rainbow-gradient);
  background-size: 200%;
  animation: glowing 5s linear infinite;
  border-radius: 20px;
}

/* =========================================
   Section Gallery
   ========================================= */
.gallery-frame {
  background: transparent;
  border: 1px solid var(--glass-border-strong);
  padding: 10px;
  border-radius: 15px;
  transition: border-color 0.3s ease;
}

.gallery-frame:hover {
  border-color: var(--text-light);
}

.project-slide-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  filter: brightness(1);
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-frame:hover .project-slide-img {
  transform: scale(1.01);
}

.carousel-caption-custom {
  position: absolute;
  bottom: 40px;
  left: 10%;
  right: 10%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.gallery-frame:hover .carousel-caption-custom {
  border-color: var(--text-light);
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.caption-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  text-shadow: 2px 2px 4px #000000;
  margin-bottom: 10px;
}

.caption-desc {
  font-size: 1rem;
  color: var(--text-white);
  text-shadow: 1px 1px 3px #000000;
  font-weight: 500;
  margin-bottom: 0;
}

/* =========================================
   FOOTER SECTION
   ========================================= */
.footer-custom {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-title {
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-orange);
  padding-left: 5px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg-med);
  color: var(--text-white);
  margin-right: 10px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--accent-orange);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.copyright-border {
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* =========================================
  Google maps
   ========================================= */
.custom-modal {
  background: #1a1a1a;
  border: 1px solid var(--glass-border-strong);
  color: var(--text-light);
}

.custom-modal .btn-close-white {
  filter: invert(1);
}

/* Maps */
.map-container {
  width: 70%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  background: var(--glass-bg-low);
}

.map-container iframe {
  display: block;
  width: 100%;
  transition: filter 0.5s ease;
}

/* Responsive maps */
@media (max-width: 768px) {
  .map-container {
    width: 100%;
  }
}
