/* Tema Variabel */
:root {
  /* Tema Gelap (Default) */
  --primary-color: #63A8E7; /* Diubah dari #0066ff menjadi #63A8E7 */
  --dark-bg: #0d0d0d;     /* Background hitam */
  --text-light: #ffffff;   /* Teks putih */
  --text-gray: #b3b3b3;    /* Teks abu-abu */
  --section-padding: 5rem 0;
  --card-bg: #1a1a1a;      /* Background card */
  --input-bg: rgba(30, 30, 30, 0.7); /* Background input */
  --border-color: #333;    /* Warna border */
  --transition-mode: 0.5s ease; /* Transisi saat ganti tema */
}

/* Tema Terang */
body.light-theme {
  --primary-color: #63A8E7; /* Aksen biru tetap sama */
  --dark-bg: #f5f5f5;     /* Background putih */
  --text-light: #333333;   /* Teks gelap */
  --text-gray: #555555;    /* Teks abu-abu lebih gelap */
  --card-bg: #ffffff;      /* Background card */
  --input-bg: rgba(240, 240, 240, 0.7); /* Background input */
  --border-color: #dddddd; /* Warna border */
}

/* Toggle Tema */
.theme-toggle {
  position: relative;
  margin-left: 20px;
  z-index: 1001; /* Meningkatkan z-index */
}

.theme-switch {
  opacity: 0;
  position: absolute;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  background-color: #111;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
  transition: background-color var(--transition-mode);
}

.switch-ball {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-mode), background-color var(--transition-mode);
}

.dark-icon, .light-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  transition: opacity var(--transition-mode);
  color: #f0c420;
  z-index: 1002; /* Meningkatkan z-index ikon */
  pointer-events: none; /* Mencegah ikon menghalangi klik */
}

.dark-icon {
  left: 8px;
  opacity: 1;
}

.light-icon {
  right: 8px;
  opacity: 0;
}

/* Ketika tema terang aktif */
body.light-theme .switch-label {
  background-color: #e6e6e6;
}

body.light-theme .switch-ball {
  transform: translateX(30px);
}

body.light-theme .dark-icon {
  opacity: 0;
}

body.light-theme .light-icon {
  opacity: 1;
}

/* Animasi Saat Scroll - Ditambahkan kembali */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base Styles setelah variabel tema */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  transition: background-color var(--transition-mode), color var(--transition-mode);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

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

/* Header Styles */
header {
  padding: 20px 0;
  background-color: rgba(13, 13, 13, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition-mode);
}

body.light-theme header {
  background-color: rgba(245, 245, 245, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.profile h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  padding: 8px 0;
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%; /* Memastikan hero section menggunakan lebar penuh */
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
}

.highlight-container {
  position: relative;
  display: inline-block;
  min-width: 400px; /* Memastikan lebar yang cukup untuk text */
  min-height: 60px; /* Memastikan tinggi yang cukup untuk text */
  vertical-align: top;
}

.highlight {
  color: var(--primary-color);
  font-weight: 800;
  text-decoration: none; /* Menghapus underline */
  position: relative;
  display: inline-block;
  line-height: 1.2;
  height: auto;
  vertical-align: top;
}

.highlight::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  width: 3px;
  background-color: var(--primary-color);
  animation: blink 0.7s infinite;
}

.hero-subtitle {
  font-size: 1.2rem; /* Diperbesar dari 1.2rem menjadi 1.5rem */
  max-width: 700px; /* Diperlebar dari 600px */
  color: var(--text-gray);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.6s;
}

/* Animasi Hero Section */
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Buttons */
.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.8s;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: white;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(99, 168, 231, 0.3);
  min-width: 220px;
}

.cv-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 168, 231, 0.4);
  background-color: #5190c9; /* Match with submit button hover */
  color: white;
}

.cv-button i {
  font-size: 1.2rem;
}

/* Light theme adjustment for CV button */
body.light-theme .cv-button {
  box-shadow: 0 5px 15px rgba(99, 168, 231, 0.2);
}

body.light-theme .cv-button:hover {
  box-shadow: 0 8px 20px rgba(99, 168, 231, 0.3);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: rgba(20, 20, 20, 0.5);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: background-color var(--transition-mode);
}

/* Tema terang untuk about section */
body.light-theme .about {
  background-color: rgba(240, 240, 240, 0.7);
}

.about h2 {
  font-size: 3.2rem; /* Diperbesar dari 2.5rem menjadi 3.2rem */
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.about-text {
  font-size: 1.2rem;
  text-align: justify;
  margin-bottom: 20px;
  /* max-width: 800px; */
  margin-left: auto;
  margin-right: auto;
}

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

.skills-container {
  display: flex;
  gap: 80px; /* Memperbesar jarak antar kolom dari 50px */
  margin-bottom: 2.5rem;
  justify-content: center; /* Mengatur skill container menjadi rata tengah */
}

.skills-column ul {
  list-style: none;
}

.skills-column ul li {
  padding: 10px 0; /* Memperbesar padding vertikal dari 8px */
  position: relative;
  padding-left: 25px;
  font-size: 1.2rem; /* Memperbesar ukuran font skill */
}

.skills-column ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.passion-text {
  font-style: italic;
  color: var(--text-gray);
  font-size: 1.2rem; /* Memperbesar ukuran font */
  max-width: 800px; /* Mengatur lebar maksimum */
  margin-left: auto; /* Untuk memastikan tetap di tengah */
  margin-right: auto; /* Untuk memastikan tetap di tengah */
}

/* Skills sebagai tag */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  max-width: 800px;
}

.skill-tag {
  background-color: rgba(99, 168, 231, 0.15);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid rgba(99, 168, 231, 0.3);
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(99, 168, 231, 0.2);
  background-color: rgba(99, 168, 231, 0.25);
}

/* Tema terang untuk skill tags */
body.light-theme .skill-tag {
  background-color: rgba(99, 168, 231, 0.1);
  border: 1px solid rgba(99, 168, 231, 0.2);
}

body.light-theme .skill-tag:hover {
  background-color: rgba(99, 168, 231, 0.2);
}

/* Media query untuk responsivitas skill tags */
@media screen and (max-width: 768px) {
  .skill-tags {
    gap: 8px;
  }
  
  .skill-tag {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* Role Tags dengan Dropdown */
.roles-container {
  margin: 30px 0;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  max-width: 800px;
}

.role-tag-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.role-tag {
  background-color: rgba(99, 168, 231, 0.15);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 168, 231, 0.3);
  cursor: pointer;
}

.role-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(99, 168, 231, 0.2);
  background-color: rgba(99, 168, 231, 0.25);
}

.tools-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 200px;
  background-color: rgb(0, 0, 0);
  border: 2px solid rgba(99, 168, 231, 0.3);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.tools-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--background-color);
  z-index: 11;
}

.role-tag-wrapper:hover .tools-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 10px;
  min-width: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.tool-item i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Tool-specific colors */
.tool-python {
  color: #3776AB;
  border-color: #3776AB;
  background-color: rgba(55, 118, 171, 0.1);
}

.tool-jupyter {
  color: #F37626;
  border-color: #F37626;
  background-color: rgba(243, 118, 38, 0.1);
}

.tool-tensorflow {
  color: #FF6F00;
  border-color: #FF6F00;
  background-color: rgba(255, 111, 0, 0.1);
}

.tool-scikit {
  color: #F7931E;
  border-color: #F7931E;
  background-color: rgba(247, 147, 30, 0.1);
}

.tool-mysql {
  color: #4479A1;
  border-color: #4479A1;
  background-color: rgba(68, 121, 161, 0.1);
}

.tool-mongodb {
  color: #47A248;
  border-color: #47A248;
  background-color: rgba(71, 162, 72, 0.1);
}

.tool-streamlit {
  color: #FF4B4B;
  border-color: #FF4B4B;
  background-color: rgba(255, 75, 75, 0.1);
}

.tool-powerbi {
  color: #F2C811;
  border-color: #F2C811;
  background-color: rgba(242, 200, 17, 0.1);
}

.tool-docker {
  color: #2496ED;
  border-color: #2496ED;
  background-color: rgba(36, 150, 237, 0.1);
}

.tool-kubernetes {
  color: #326CE5;
  border-color: #326CE5;
  background-color: rgba(50, 108, 229, 0.1);
}

.tool-spark {
  color: #E25A1C;
  border-color: #E25A1C;
  background-color: rgba(226, 90, 28, 0.1);
}

.tool-airflow {
  color: #017CEE;
  border-color: #017CEE;
  background-color: rgba(1, 124, 238, 0.1);
}

.tool-hadoop {
  color: #FFDE57;
  border-color: #FFDE57;
  background-color: rgba(255, 222, 87, 0.1);
}

.tool-pandas {
  color: #4d29e0;
  border-color: #4d29e0;
  background-color: rgba(28, 5, 121, 0.1);
}

.tool-pytorch {
  color: #EE4C2C;
  border-color: #EE4C2C;
  background-color: rgba(238, 76, 44, 0.1);
}

.tool-numpy {
  color: #4DABCF;
  border-color: #4DABCF;
  background-color: rgba(77, 171, 207, 0.1);
}

.tool-mlflow {
  color: #00AEFF;
  border-color: #00AEFF;
  background-color: rgba(0, 174, 255, 0.1);
}

.tool-huggingface {
  color: #FFD21E;
  border-color: #FFD21E;
  background-color: rgba(255, 210, 30, 0.1);
}

.tool-openai {
  color: #1A7F64;
  border-color: #1A7F64;
  background-color: rgba(26, 127, 100, 0.1);
}

.tool-langchain {
  color: #4DABCF;
  border-color: #4DABCF;
  background-color: rgba(77, 171, 207, 0.05);
}

/* Light theme adjustments for tool items */
body.light-theme .tool-item {
  background-color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

body.light-theme .tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Tool-specific colors untuk tema terang */
body.light-theme .tool-python {
  color: #3776AB;
  border-color: #3776AB;
  background-color: rgba(55, 118, 171, 0.05);
}

body.light-theme .tool-jupyter {
  color: #F37626;
  border-color: #F37626;
  background-color: rgba(243, 118, 38, 0.05);
}

body.light-theme .tool-tensorflow {
  color: #FF6F00;
  border-color: #FF6F00;
  background-color: rgba(255, 111, 0, 0.05);
}

body.light-theme .tool-scikit {
  color: #F7931E;
  border-color: #F7931E;
  background-color: rgba(247, 147, 30, 0.05);
}

body.light-theme .tool-mysql {
  color: #4479A1;
  border-color: #4479A1;
  background-color: rgba(68, 121, 161, 0.05);
}

body.light-theme .tool-mongodb {
  color: #47A248;
  border-color: #47A248;
  background-color: rgba(71, 162, 72, 0.05);
}

body.light-theme .tool-streamlit {
  color: #FF4B4B;
  border-color: #FF4B4B;
  background-color: rgba(255, 75, 75, 0.05);
}

body.light-theme .tool-powerbi {
  color: #F2C811;
  border-color: #F2C811;
  background-color: rgba(242, 200, 17, 0.05);
}

body.light-theme .tool-docker {
  color: #2496ED;
  border-color: #2496ED;
  background-color: rgba(36, 150, 237, 0.05);
}

body.light-theme .tool-kubernetes {
  color: #326CE5;
  border-color: #326CE5;
  background-color: rgba(50, 108, 229, 0.05);
}

body.light-theme .tool-spark {
  color: #E25A1C;
  border-color: #E25A1C;
  background-color: rgba(226, 90, 28, 0.05);
}

body.light-theme .tool-airflow {
  color: #017CEE;
  border-color: #017CEE;
  background-color: rgba(1, 124, 238, 0.05);
}

body.light-theme .tool-hadoop {
  color: #FFDE57;
  border-color: #FFDE57;
  background-color: rgba(255, 222, 87, 0.05);
}

body.light-theme .tool-pandas {
  color: #150458;
  border-color: #150458;
  background-color: rgba(21, 4, 88, 0.05);
}

body.light-theme .tool-pytorch {
  color: #EE4C2C;
  border-color: #EE4C2C;
  background-color: rgba(238, 76, 44, 0.05);
}

body.light-theme .tool-numpy {
  color: #4DABCF;
  border-color: #4DABCF;
  background-color: rgba(77, 171, 207, 0.05);
}

body.light-theme .tool-mlflow {
  color: #00AEFF;
  border-color: #00AEFF;
  background-color: rgba(0, 174, 255, 0.05);
}

body.light-theme .tool-huggingface {
  color: #FFD21E;
  border-color: #FFD21E;
  background-color: rgba(255, 210, 30, 0.05);
}

/* Responsive styling for tool items */
@media screen and (max-width: 768px) {
  .tools-dropdown {
    gap: 10px;
  }
  
  .tool-item {
    padding: 10px;
    min-width: 80px;
  }
  
  .tool-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }
}

/* Tool hover effect */
.tool-item:hover {
  background-color: rgba(99, 168, 231, 0.15);
}

/* Tema terang untuk role tags */
body.light-theme .role-tag {
  background-color: rgba(99, 168, 231, 0.1);
  border: 1px solid rgba(99, 168, 231, 0.2);
}

body.light-theme .role-tag:hover {
  background-color: rgba(99, 168, 231, 0.2);
}

body.light-theme .tools-dropdown {
  background-color: rgb(245, 245, 245);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(99, 168, 231, 0.3);
}

body.light-theme .tools-dropdown::before {
  border-bottom-color: var(--background-color);
}

body.light-theme .tool-item {
  background-color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Efek Bounce pada Hover */
@keyframes slight-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.role-tag:hover {
  animation: slight-bounce 0.6s ease infinite;
  transform: translateY(0);
}

/* Media query untuk responsivitas role tags */
@media screen and (max-width: 768px) {
  .role-tags {
    gap: 10px;
  }
  
  .role-tag {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
  
  .tools-dropdown {
    min-width: 180px;
  }
  
  .tool-item {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

/* Portfolio Section */
.portfolio {
  padding: var(--section-padding);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio h2 {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  text-align: center;
}

/* Portfolio Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.portfolio-carousel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
  padding: 10px 0;
}

.portfolio-carousel .portfolio-item {
  min-width: 320px;
  width: 320px; /* Ukuran tetap untuk item portfolio */
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-carousel .portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.portfolio-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.portfolio-info p {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.details-link {
  display: inline-block;
  background-color: transparent;
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}

.details-link:hover {
  /* background-color: var(--primary-color); */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(99, 168, 231, 0.4);
}

.github-link {
  align-self: flex-start;
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.github-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 168, 231, 0.4);
  background-color: #5190c9; /* Match with submit button hover */
  color: white;
}

/* Memberi warna teks putih pada button portfolio di mode terang */
body.light-theme .github-link {
  color: #ffffff;
}

/* Navigation del carousel */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

.carousel-prev, 
.carousel-next {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-prev:hover, 
.carousel-next:hover {
  background-color: #5190c9;
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background-color: #888;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

@media screen and (max-width: 992px) {
  .portfolio-carousel .portfolio-item {
    flex: 0 0 calc(50% - 15px); /* 2 items en pantallas medianas */
    min-width: 300px;
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  cursor: pointer;
}

.hamburger-icon {
  width: 30px;
  height: 20px;
  position: relative;
  margin-right: 10px;
  z-index: 1001;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-light);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

.hamburger-icon.open span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-icon.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Media Queries untuk Responsivitas */
@media screen and (max-width: 1200px) {
  .container {
    width: 90%;
  }

  .hero-title {
    font-size: 3.5rem;
  }
  
  .highlight-container {
    min-width: 350px;
    min-height: 55px;
  }
}

@media screen and (max-width: 992px) {
  .container {
    width: 90%;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .highlight-container {
    min-width: 320px;
    min-height: 50px;
  }
  
  .about h2, .portfolio h2, .contact h2 {
    font-size: 2.8rem;
  }
}

@media screen and (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }

  .about h2, .portfolio h2, .contact h2 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  /* Header Mobile */
  .header-content {
    position: relative;
  }
  
  .hamburger-menu {
    display: block;
    position: absolute;
    right: 80px; /* Give space for theme toggle */
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Sembunyikan nama di header pada mobile */
  .profile h1 {
    display: none;
  }
  
  /* Sesuaikan posisi foto profil */
  .profile {
    justify-content: center;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: var(--card-bg);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    padding-top: 80px;
  }
  
  nav.open {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 10px 0;
  }
  
  body.light-theme .hamburger-icon span {
    background: var(--text-light);
  }
  
  /* Hero Section Mobile */
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .highlight-container {
    min-width: 270px;
    min-height: 45px;
  }
  
  .cv-button {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 200px;
  }

  /* Skills Section Mobile */
  .skills-container {
    flex-direction: column;
    gap: 20px;
  }
  
  /* Portfolio Section Mobile */
  .portfolio-item {
    width: 280px;
    min-width: 280px;
  }

  .portfolio-carousel .portfolio-item {
    min-width: 100%;
  }
  
  /* Form Mobile */
  .form-group input, 
  .form-group textarea {
    padding: 12px;
    font-size: 1rem;
  }
  
  .submit-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .about h2, .portfolio h2, .contact h2 {
    font-size: 2rem;
  }

  .contact-form form {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .highlight-container {
    min-width: 230px;
    min-height: 40px;
  }
  .cv-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 180px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .about h2, .portfolio h2, .contact h2 {
    font-size: 1.8rem;
  }

  .portfolio-item .portfolio-info h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .profile h1 {
    font-size: 1.2rem;
  }
  
  .about h2, .portfolio h2, .contact h2 {
    font-size: 2.2rem;
  }
  
  .carousel-nav {
    margin-top: 20px;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
  }
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background-color: rgba(20, 20, 20, 0.3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color var(--transition-mode);
}

/* Tema terang untuk contact section */
body.light-theme .contact {
  background-color: rgba(245, 245, 245, 0.9);
}

.contact h2 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

.contact-text {
  text-align: center;
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-gray);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 5px;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s, background-color var(--transition-mode), color var(--transition-mode);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.submit-btn {
  background-color: var(--primary-color);
  color: #ffffff; /* Selalu putih untuk kontras */
  border: none;
  padding: 14px 34px;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.submit-btn:hover {
  background-color: #5190c9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(99, 168, 231, 0.4);
}

/* Memastikan responsivitas form di mobile */
@media screen and (max-width: 768px) {
  .contact {
    padding-top: 80px;
  }

  .contact-form {
    width: 100%;
    padding: 0 15px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 1rem;
  }
  
  .submit-btn {
    width: 100%;
    padding: 12px 0;
  }
}

/* Footer Section */
footer {
  background-color: rgba(10, 10, 10, 0.9);
  padding: 40px 0;
  text-align: center;
  transition: background-color var(--transition-mode);
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 0;
  clear: both;
}

/* Tema terang untuk footer */
body.light-theme footer {
  background-color: rgba(235, 235, 235, 0.9);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--card-bg);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
  color: #ffffff;
}

footer p {
  color: var(--text-gray);
  font-size: 1rem;
  margin: 0;
}

/* Footer responsivitas untuk mobile */
@media screen and (max-width: 768px) {
  footer {
    padding: 30px 0;
    position: relative;
    z-index: 10;
    display: block;
    background-color: rgba(10, 10, 10, 0.95);
  }
  
  body.light-theme footer {
    background-color: rgba(235, 235, 235, 0.95);
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}