        :root {
            --bg-color: #fff5f5;
            --second-bg-color: #ffecef;
            --text-color: #5a3d5c;
            --main-color: #d291bc;
            --accent-color: #ffa7c4;
            --dark-purple: #7c5295;
            --light-pink: #ffdfea;
        }

        .dark-mode {
            --bg-color: #2d2035;
            --second-bg-color: #3a2945;
            --text-color: #e9d6ea;
            --main-color: #d291bc;
            --accent-color: #ffa7c4;
            --dark-purple: #b28bcc;
            --light-pink: #ffdfea;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
            min-height: 100vh;
            padding-bottom: 60px;
        }

        .navbar {
            background: rgba(255, 245, 245, 0.9);
            backdrop-filter: blur(10px);
            padding: 1.5rem 9%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 15px rgba(210, 145, 188, 0.1);
        }

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none; 
}

.logo span {
    color: var(--main-color); 
}


        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-size: 1.6rem;
            transition: 0.3s;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            background: var(--main-color);
            bottom: -5px;
            left: 0;
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--main-color);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .parallax-header {
            height: 70vh;
            background: linear-gradient(rgba(210, 145, 188, 0.7), rgba(255, 167, 196, 0.7)), 
                        url('https://images.unsplash.com/photo-1446776653964-20c1d3a81b06?ixlib=rb-4.0.3') fixed center/cover;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
            position: relative;
            padding: 0 20px;
            margin-top: 80px;
        }

        .header-content {
            z-index: 2;
            max-width: 800px;
        }

        header h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
            animation: fadeInDown 1s ease;
        }

        header p {
            font-size: 1.5rem;
            margin-bottom: 30px;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 1s ease;
        }

        .controls {
            position: fixed;
            top: 90px;
            right: 20px;
            z-index: 1000;
            display: flex;
            gap: 10px;
        }

        .control-btn {
            background: var(--second-bg-color);
            color: var(--text-color);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(210, 145, 188, 0.2);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .control-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 14px rgba(210, 145, 188, 0.3);
        }

        .carousel-container {
            max-width: 1200px;
            margin: 50px auto;
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 15px 30px rgba(210, 145, 188, 0.2);
        }

        .carousel {
            display: flex;
            transition: transform 0.5s ease;
        }

        .carousel-item {
            min-width: 100%;
            padding: 40px;
            background: var(--second-bg-color);
            text-align: center;
        }

        .carousel-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .planet-image {
            width: 200px;
            height: 200px;
            margin: 0 auto 20px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(210, 145, 188, 0.3);
            background: linear-gradient(135deg, var(--main-color), var(--accent-color));
        }

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

        .planet-image i {
            font-size: 4rem;
            color: white;
        }

        .carousel-content h2 {
            font-size: 2.5rem;
            color: var(--dark-purple);
            margin-bottom: 15px;
        }

        .carousel-content p {
            font-size: 1.2rem;
            max-width: 600px;
            margin-bottom: 20px;
        }

        .carousel-btn {
            background: var(--main-color);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 30px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(210, 145, 188, 0.3);
        }

        .carousel-btn:hover {
            background: var(--dark-purple);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(210, 145, 188, 0.4);
        }

        .carousel-nav {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 15px;
        }

        .carousel-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--light-pink);
            cursor: pointer;
            transition: all 0.3s;
        }

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

        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: var(--second-bg-color);
            color: var(--text-color);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(210, 145, 188, 0.2);
            z-index: 100;
            transition: all 0.3s;
        }

        .carousel-arrow:hover {
            background: var(--main-color);
            color: white;
        }

        .carousel-arrow.prev {
            left: 20px;
        }

        .carousel-arrow.next {
            right: 20px;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-content {
            background-color: var(--second-bg-color);
            margin: 5% auto;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
            max-width: 800px;
            position: relative;
            transform: translateY(-50px);
            transition: transform 0.4s ease;
            color: var(--text-color);
        }

        .modal.show {
            display: block;
            opacity: 1;
        }

        .modal.show .modal-content {
            transform: translateY(0);
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-color);
            transition: color 0.3s;
        }

        .close-modal:hover {
            color: var(--accent-color);
        }

        .modal-header {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
        }

        .modal-planet-image {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            margin-right: 25px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--main-color), var(--accent-color));
            display: flex;
            justify-content: center;
            align-items: center;
        }

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

        .modal-planet-image i {
            font-size: 3.5rem;
            color: white;
        }

        .modal-title {
            font-size: 2.5rem;
            color: var(--dark-purple);
        }

        .modal-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 25px 0;
        }

        .detail-item {
            background: rgba(210, 145, 188, 0.1);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
        }

        .detail-item h4 {
            color: var(--dark-purple);
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        footer {
            text-align: center;
            padding: 25px;
            background-color: var(--second-bg-color);
            color: var(--text-color);
            position: absolute;
            bottom: 0;
            width: 100%;
        }

        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--main-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(210, 145, 188, 0.3);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
            z-index: 999;
        }

        .scroll-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .scroll-to-top:hover {
            transform: translateY(-5px);
            background: var(--dark-purple);
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @media (max-width: 768px) {
            header h1 {
                font-size: 2.5rem;
            }
            
            header p {
                font-size: 1.2rem;
            }
            
            .carousel-item {
                padding: 30px 20px;
            }
            
            .planet-image {
                width: 150px;
                height: 150px;
            }
            
            .planet-image i {
                font-size: 3rem;
            }
            
            .modal-header {
                flex-direction: column;
                text-align: center;
            }
            
            .modal-planet-image {
                margin-right: 0;
                margin-bottom: 20px;
            }
            
            .modal-details {
                grid-template-columns: 1fr;
            }
            
            .carousel-arrow {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
        }

@media (max-width: 768px) {
  .container {
    padding: 30px;
  }

  #display {
    font-size: 3.2rem;
    padding: 15px 25px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .buttons button {
    width: 100%;
    max-width: 200px;
  }
}
/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Responsive: Hamburger aktif di layar kecil */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 9%;
    background: var(--bg-color);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }
}
