:root {
    --bg-dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --gold-primary: #ffcc00;
    --gold-dark: #d48c00;
    --text-muted: #888;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem; /* Diperkecil dari 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* language-selector dan theme-toggle lebih dekat */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo:hover {
    color: var(--primary-color);
}

.logo:hover .logo-image {
    transform: scale(1.1);
}

.logo span {
    font-weight: 700;
    color: #ffffff; /* teks logo jadi putih */
    position: relative;
    font-size: 1.25rem; /* Diperkecil dari 1.5rem */
    padding: 0.2rem 0;  /* Diperkecil dari 0.5rem */
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* opsi warna oranye saat header dalam mode terang saat discroll */
.header.scrolled .logo span {
    color: #ffa733;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.2rem; /* Diperkecil dari 0.55rem 1.4rem */
    border-radius: 12px;
    font-size: 0.85rem;      /* Sedikit lebih kecil agar proporsional */
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a1a;
    background: hsl(32, 78%, 52%);
    cursor: pointer;
    outline-offset: 4px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    will-change: transform;
    transform: translateY(-2px); /* Dikurangi dari -4px agar tidak terlalu tinggi */
    transition:
        transform 600ms cubic-bezier(.3, .7, .4, 1),
        filter 250ms ease;
}

/* navbar text color switches with theme */
body.dark-mode .nav-links a {
    color: #ffffff;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
    z-index: -2;
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(
        to left,
        hsl(32, 87%, 35%) 0%,
        hsl(39, 82%, 56%) 8%,
        hsl(39, 94%, 53%) 92%,
        hsl(34, 100%, 33%) 100%
    );
    z-index: -3;
}

.nav-links a:hover {
    filter: brightness(110%);
    -webkit-filter: brightness(110%);
    transform: translateY(-4px); /* Dikurangi dari -6px */
    transition:
        transform 250ms cubic-bezier(.3, .7, .4, 1.5),
        filter 250ms ease;
}

.nav-links a:hover::before {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.nav-links a:active {
    transform: translateY(-2px);
    transition: transform 34ms;
}

.nav-links a:active::before {
    transform: translateY(1px);
    transition: transform 34ms;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.language-selector .menu-item {
    position: relative;
}

.language-selector .menu-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.language-selector .menu-item a:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.language-selector .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    list-style: none;
    max-height: 0px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-selector .menu-item:hover .sub-menu,
.language-selector .menu-item:focus .sub-menu,
.language-selector .menu-item:focus-within .sub-menu {
    max-height: 300px;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.language-selector .sub-menu li {
    margin: 0;
}

.language-selector .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    background: none;
    width: 100%;
    text-align: left;
    box-shadow: none;
    margin: 0;
}

.language-selector .sub-menu li a.lang-btn {
    background: none;
    color: var(--text-color);
    border-radius: 0;
    font-weight: 500;
    box-shadow: none;
    margin: 0;
    width: 100%;
}

.language-selector .sub-menu li a.lang-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: none;
    box-shadow: none;
}

.language-selector .sub-menu li a.lang-btn.active {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: none;
}



.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.theme-toggle:hover::before {
    transform: scale(1);
}

/* Dark mode styles for header */
body.dark-mode .header {
    background: rgba(18, 18, 18, 0.95);
}

body.dark-mode .header.scrolled {
    background: rgba(18, 18, 18, 0.98);
}

body.dark-mode .nav-links a {
    color: var(--text-color);
}

body.dark-mode .theme-toggle {
    color: var(--text-color);
}

/* Responsive styles for header */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .language-selector {
        margin-right: 0.5rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-image {
      width: 32px;  /* Diperkecil dari 40px */
      height: 32px; /* Diperkecil dari 40px */
    }
}
/* Container Utama untuk Konten */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px; /* Padding atas besar agar tidak tertutup navbar */
    text-align: center;
}

/* Bagian Header (Tentang Saya) */
.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Efek Teks Gradasi (Gambar Pertama) */
.gradient-text {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%); /* Gradasi putih ke abu-abu premium */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Subtitle / Deskripsi Singkat */
.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Responsive untuk Mobile */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* GRID LAYOUT (Gambar Pertama) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

/* SIDEBAR PROFIL */
.profile-circle {
    width: 180px;
    height: 180px;
    /* border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #e74c3c); */
    padding: 5px;
    margin: 0 auto;
}

.profile-circle img {
    width: 100%; height: 100%;
    border-radius: 50%; border: 4px solid var(--bg-dark);
}

.profile-name { text-align: center; margin-top: 20px; }
.profile-role { color: #3498db; text-align: center; font-size: 0.9rem; }

/* STORY CARD (Gambar Kedua) */
.story-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

.underline-gold {
    width: 100px; height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    margin: 10px 0 30px;
}

.yellow-quote {
    border-left: 4px solid var(--gold-primary);
    padding-left: 20px;
    margin: 20px 0;
    color: #ccc;
    font-style: italic;
}

/* ===== FIX FOOTER BOTTOM SESUAI GAMBAR ===== */
/* 1. Warna latar belakang utama untuk seluruh footer */
/* Container Utama Footer */
.footer {
    background: #0d0d0d; /* Hitam pekat agar tidak keputihan */
    color: rgba(255, 255, 255, 0.7);
    width: 100%;
    font-family: sans-serif;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligment ke atas agar sejajar antara kiri dan kanan */
}

/* Sisi Kiri: Copyright & Links */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-left p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links-bottom {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-bottom a:hover {
    color: #FFD700; /* Warna aksen emas saat hover */
}

/* Sisi Kanan: Ikon & Made With (Fokus Perbaikan di Sini) */
.footer-right {
    display: flex;
    flex-direction: column;
    /* Menggunakan center agar ikon dan teks "Made with" lurus di tengah satu sama lain */
    align-items: center; 
    gap: 0.8rem;
}

/* Container Ikon: Mengatur susunan ikon secara horizontal */
.footer-right .icons {
    display: flex;
    justify-content: center; /* Memastikan ikon berjejer di tengah */
    gap: 1.5rem;
}

.footer-right .icons a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.2s;
}

.footer-right .icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Teks Made With */
.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center; /* Menyelaraskan teks ke tengah */
    white-space: nowrap; /* Mencegah teks turun ke baris baru jika container sempit */
}
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column-reverse; /* Ikon di atas, teks di bawah */
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left {
        align-items: center;
    }

    .footer-links-bottom {
        justify-content: center;
        flex-wrap: wrap;
    }
}