* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background-color: #34495e;
    border-radius: 5px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080');
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.typing {
    color: #3498db;
    border-right: 2px solid #3498db;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #3498db; }
}

section {
    padding: 4rem 2rem;
    min-height: 100vh;
    padding-top: 80px;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Previous styles remain the same until .project-card */

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    flex: 1;
}

.project-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    flex: 1;
}

.btn:hover {
    background-color: #2980b9;
}

/* Add this at the end of the file */
#musicToggle {
    cursor: pointer;
}

.music-playing {
    color: #3498db !important;
}

/* Rest of the previous styles remain the same */

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: scale(1.05);
}

.skill i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: white;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #2c3e50;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* ===== DARK/LIGHT MODE ===== */
:root {
  /* Default Light Mode */
  --bg-color: #f5f5f5;
  --text-color: #333;
  --navbar-color: #2c3e50;
  --card-bg: white;
  --skill-bg: white;
  --title-color: #2c3e50;
  --project-text: #7f8c8d;
  --btn-color: #3498db;
  --btn-hover: #2980b9;
}

[data-theme="dark"] {
  /* Dark Mode */
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --navbar-color: #1a1a1a;
  --card-bg: #1e1e1e;
  --skill-bg: #252525;
  --title-color: #3498db;
  --project-text: #b0b0b0;
  --btn-color: #2980b9;
  --btn-hover: #3498db;
}

/* Elemen yang perlu di-update */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.5s ease, color 0.5s ease;
}

.navbar {
  background-color: var(--navbar-color);
}

section h2 {
  color: var(--title-color);
}

.project-card {
  background: var(--card-bg);
}

.project-info h3 {
  color: var(--title-color);
}

.project-info p {
  color: var(--project-text);
}

.btn {
  background-color: var(--btn-color);
}

.btn:hover {
  background-color: var(--btn-hover);
}

.skill {
  background: var(--skill-bg);
}

/* Toggle Button Style */
.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 1rem;
  color: inherit;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

[data-theme="dark"] .fa-moon:before {
  content: "\f185"; /* Ganti ke icon sun */
}

/* Responsive */
@media (max-width: 768px) {
  .theme-toggle {
    position: absolute;
    right: 60px;
    top: 1rem;
  }
}

.custom-text {
      font-family: 'Pacifico', cursive; /* Font custom untuk teks */
      font-size: 1.2rem;
      color: white;
    }
    
    .judul-utama {
      font-family: 'Winky Sans', sans-serif;
      font-weight: 700;
      font-style: italic;
    }