/* ==========================================================================
   CONFIG & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #34d399;
    --dark-bg: rgba(26, 30, 41, 0.8);
    --dark-accent: #2c3e50;
    --text-white: #ffffff;
    --transition-standard: all 0.3s ease;
    --transition-switch: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --btn-shadow: rgba(52, 211, 153, 0.8);
}

/* Light Mode */
[data-theme="dark"] {
    --primary-color: #FF5733;
    --dark-bg: rgba(26, 30, 41, 0.5);
    --dark-accent: #2c3e50;
    --text-white: #ffffff;
    --transition-standard: all 0.3s ease;
    --transition-switch: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --btn-shadow: rgba(255, 87, 51, 0.8);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0;
    transition: var(--transition-standard);
    pointer-events: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    height: 75px;
    margin: 0 auto;
    padding: 15px 40px;
    background-color: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    transition: var(--transition-standard);
    pointer-events: auto;
}

/* Header State: Scrolled */
header.scrolled {
    padding: 15px 0;
}

header.scrolled .header-container {
    background-color: rgba(26, 30, 41, 0.95);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   LOGO & LEFT SECTION
   ========================================================================== */
.left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    display: flex;
    align-items: center;
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition-standard);
}

/* ==========================================================================
   NAVIGASI
   ========================================================================== */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* ==========================================================================
   BUTTON (CTA)
   ========================================================================== */
.cta {
    transition: 0.3s;
}

.cta:hover {
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #252525;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0px 15px var(--btn-shadow);
}

/* ==========================================================================
   THEME SWITCHER
   ========================================================================== */
.theme-switch-container {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    padding: 0 5px;
    background-color: var(--dark-accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease;
}

.switch-ball {
    position: relative;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: var(--transition-switch);
}

.switch-ball i {
    position: absolute !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 14px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* Icon States */
.fa-sun { opacity: 0; color: #f39c12; }
.fa-moon { opacity: 1; color: #f1c40f; }

/* Dark Mode Logic */
[data-theme="dark"] .theme-switch { background-color: #c4c4c4; }
[data-theme="dark"] .switch-ball { transform: translateX(28px); }
[data-theme="dark"] .fa-sun { opacity: 1; }
[data-theme="dark"] .fa-moon { opacity: 0; }