@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* =========================================
   VARIABLES (Dark & Light Mode)
   ========================================= */
:root {
    --bg-dark: #0f172a;       /* Biru sangat gelap (Elegant Dark) */
    --bg-card: #1e293b;       /* Biru slate untuk kartu */
    --primary-blue: #3b82f6;  /* Biru terang untuk aksen */
    --text-main: #f8fafc;     /* Putih tulang agar tidak silau */
    --text-muted: #94a3b8;    /* Abu-abu untuk deskripsi */
    --white: #ffffff;
}

/* Variabel untuk Light Mode */
.light-mode {
    --bg-dark: #f8fafc;       /* Putih abu-abu lembut */
    --bg-card: #ffffff;       /* Putih bersih untuk kartu */
    --text-main: #1e293b;     /* Tulisan gelap */
    --text-muted: #64748b;    /* Abu-abu gelap */
    --white: #1e293b;
    --bg-bar: #e2e8f0;        /* Warna abu-abu terang untuk background bar */
}

/* =========================================
   BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Transisi halus saat pindah mode */
    transition: background-color 0.3s, color 0.3s;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

.theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.2rem;
    padding: 10px;
    transition: 0.3s;
}

/* =========================================
   HERO SECTION & PROFILE IMAGE
   ========================================= */
.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero h1 span {
    color: var(--primary-blue);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    background-color: var(--bg-card);
    display: block;
    border: 6px solid var(--white);
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.7),
        0 0 60px rgba(59, 130, 246, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: 0.5s ease-in-out;
}

.profile-img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.9),
        0 0 80px rgba(59, 130, 246, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.2);
}

/* =========================================
   COMPONENTS (Buttons, Cards, Forms)
   ========================================= */
.btn {
    padding: 0.8rem 2.5rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.section { padding: 100px 10%; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.skill-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tech-item {
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    font-weight: 600;
}

.tech-item:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

/* Update pada skill-bar-container agar menggunakan variabel */
.skill-bar-bg {
    width: 100%; 
    background: var(--bg-bar, #1e293b); /* Fallback ke warna gelap */
    height: 8px; 
    border-radius: 10px;
    overflow: hidden; /* Agar progress bar tidak keluar dari border radius */
}

input:focus, textarea:focus {
    outline: 2px solid var(--primary-blue);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 3rem;
    background: #070b14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
/* Styling Khusus Tabel Admin agar rapi dengan Dark Mode */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    text-align: left;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
}

.admin-table tr:hover {
    background: rgba(59, 130, 246, 0.1);
}