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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    background-color: #0a0a0a;
}

/* Base Variables */
:root {
    --bg-color: #0a0a0a;
    --bg-color-alt: #121212;
    --primary-color: #9d4edd;
    --secondary-color: #7b2cbf;
    --text-color: #f5f5f5;
    --text-color-muted: #a0a0a0;
    --transition-speed: 0.5s;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Modified container - removed max-width constraint */
.container {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

/* Added inner container for text content */
.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

.section {
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 100%;
}

.main-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ================== PERUBAHAN CSS DIMULAI DI SINI ================== */

/* Desktop Navbar Styles */
.desktop-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.desktop-navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Di desktop, menu tetap di tengah */
    align-items: center;
    position: relative;
    height: 40px; 
}

/* Style untuk nama web, disembunyikan di desktop */
.navbar-brand {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #af6ce6;
    font-size: 1.6rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-nav a {
  color: var(--text-color-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  padding: 6px 4px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: none;
  border-radius: 4px;
}

.navbar-nav a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #c77dff);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-nav a:hover {
  color: var(--text-color);
  transform: translateY(-2px);
}

.navbar-nav a:hover::before {
  width: 100%;
}

.navbar-nav .special-link {
  background: none !important;
  border: none !important;
  margin-left: 10px !important;
  font-weight: 600;
  color: var(--primary-color);
}

.navbar-nav .special-link:hover {
  color: #c77dff;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(199, 125, 255, 0.6);
}

.navbar-nav .special-link:hover::before {
  width: 100%;
}

/* Header / Profile Section */
header {
    position: relative;
    width: 100%;
    background-color: var(--bg-color);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.05) 0%, rgba(10, 10, 10, 0) 80%);
    z-index: 0;
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    z-index: 1;
    position: relative;
    width: 100%;
    padding-top: 20px;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text {
    text-align: center;
    max-width: 600px;
}

.profile-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), #c77dff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.3s;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.6s;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.9s;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    color: var(--text-color);
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.2s, bounce 2s infinite 1.2s;
}

.scroll-down a {
    color: var(--text-color);
}

/* About Me Section */
#about {
    background-color: var(--bg-color-alt);
    position: relative;
    width: 100%;
    left: 0;
    margin: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

.skills h3 {
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
}

.skills h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 25px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(123, 44, 191, 0.1));
    border-left: 3px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.skill-tag:hover, .skill-tag.active {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(123, 44, 191, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.15);
}

.skill-tag i {
    color: var(--primary-color);
    font-size: 1rem;
}

.skill-tag:nth-child(1) { border-color: #7209b7; }
.skill-tag:nth-child(1) i { color: #7209b7; }
.skill-tag:nth-child(2) { border-color: #7209b7; }
.skill-tag:nth-child(2) i { color: #7209b7; }
.skill-tag:nth-child(3) { border-color: #7209b7; }
.skill-tag:nth-child(3) i { color: #7209b7; }
.skill-tag:nth-child(4) { border-color: #7209b7; }
.skill-tag:nth-child(4) i { color: #7209b7; }
.skill-tag:nth-child(5) { border-color: #7209b7; }
.skill-tag:nth-child(5) i { color: #7209b7; }

.skill-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    min-height: 100px;
    position: relative;
}

.skill-detail {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.skill-detail p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color-muted);
}

/* My Mind Section */
#my-mind {
    background-color: var(--bg-color);
    position: relative;
    width: 100%;
    left: 0;
    margin: 0;
    padding: 80px 0;
}

.mind-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.topic {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 15px;
    padding: 30px 25px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(157, 78, 221, 0.1);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.topic:hover::before {
    transform: scaleX(1);
}

.topic:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.15);
    border-color: rgba(157, 78, 221, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.topic-icon {
    text-align: center;
    margin-bottom: 20px;
}

.topic-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.topic:hover .topic-icon i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.topic h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.topic-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topic-content p {
    color: var(--text-color-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--primary-color);
    text-decoration: none;
}

.read-more:hover {
    background: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

#ai-topic .topic-icon i { color: #7209b7; }
#crypto-topic .topic-icon i { color: #7300f7; }
#tech-trends-topic .topic-icon i { color: #0648ff; }
#creative-globe-topic .topic-icon i { color: #ff006e; }
#digital-economy-topic .topic-icon i { color: #8338ec; }
#smart-cities-topic .topic-icon i { color: #6c24af; }

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: var(--bg-color-alt);
    color: var(--text-color-muted);
    font-size: 0.9rem;
    width: 100%;
}

.section-title-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* Hamburger Menu & Modal Styles */
.hamburger-menu {
    display: block; /* Disembunyikan di beberapa view, diatur di @media */
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}
.hamburger-lines {
    width: 18px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger-lines span {
    display: block;
    height: 2px;
    width: 125%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger-menu:hover .hamburger-lines span {
    background: linear-gradient(90deg, #c77dff, var(--primary-color));
}
.hamburger-menu.active .hamburger-lines span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-menu.active .hamburger-lines span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .hamburger-lines span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.98));
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid rgba(157, 78, 221, 0.15);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.nav-menu.active {
    right: 0;
}
.nav-menu-content {
    padding: 100px 40px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.nav-item {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
}
.nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
.nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
.nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }

.nav-link {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    padding: 18px 20px;
    margin: 4px 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 78, 221, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(157, 78, 221, 0.08);
    border-color: rgba(157, 78, 221, 0.2);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.1);
}

.nav-link.special {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(123, 44, 191, 0.1));
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.nav-link.special::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(123, 44, 191, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link.special:hover {
    transform: translateY(-3px) translateX(0);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.25);
    border-color: rgba(157, 78, 221, 0.5);
}

.nav-link.special:hover::after {
    opacity: 1;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.confirmation-modal {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 15px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.4s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.confirmation-modal .modal-content h3 {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.confirmation-modal .modal-content p {
    color: var(--text-color-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1rem;
}
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.btn-cancel, .btn-continue {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.btn-continue {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
}
.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}


/* ======================================================= */
/* ===         BLOK RESPONSIVE YANG DIPERBAIKI         === */
/* ======================================================= */

/* --- Tampilan Desktop (Layar 769px ke atas) --- */
@media (min-width: 769px) {
  /* Sembunyikan elemen menu mobile di desktop */
  .hamburger-menu {
    display: none !important;
  }
  .nav-menu, .nav-overlay {
    display: none !important;
  }

  /* Pastikan menu desktop terlihat */
  .navbar-nav {
    display: flex !important;
  }

  /* Aturan grid 3 kolom untuk desktop */
   .mind-topics {
        grid-template-columns: repeat(3, 1fr);
   }
}

/* --- Tampilan Mobile (Layar 768px ke bawah) --- */
@media (max-width: 768px) {
  /* 1. Navbar menjadi visible dengan background sesuai tema */
  .desktop-navbar {
    background: rgba(10, 10, 10, 0.75) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2) !important;
    height: 50px; /* Tinggi navbar yang pas untuk mobile */
    padding: 0; /* Padding diatur di .navbar-content */
  }

  /* 2. Atur konten navbar: nama web di kiri, hamburger di kanan */
  .navbar-content {
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
  }

  /* 3. Tampilkan nama website di mobile */
  .navbar-brand {
    display: block !important;
  }

  /* 4. Sembunyikan link navigasi desktop di mobile */
  .desktop-navbar .navbar-nav {
    display: none !important;
  }

  /* 5. Tampilkan hamburger dan posisikan di dalam navbar */
  .hamburger-menu {
    display: flex !important;
    position: static !important; /* Hapus positioning absolut */
    transform: none !important;
    top: auto;
    right: auto;
  }
  
  /* Perbaikan umum lainnya untuk mobile */
  html, body {
    overflow-x: hidden;
  }

  .section {
    min-height: auto;
    padding: 60px 0;
  }
  
  header.section {
      min-height: 100vh;
      padding-top: 0;
  }

  .scroll-down {
      display: none;
  }
  
  .section-title {
      font-size: 2rem;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 15px;
    margin-top: 100px;
  }

    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-text h1 {
        font-size: 2.2rem;
    }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .mind-topics {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .topic {
    height: auto;
    min-height: 220px;
  }

  .nav-menu {
    width: 280px;
  }
}
