@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f5f9 100%);
    color: #222;
    transition: background 0.5s, color 0.3s;
}

header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px solid #3498db;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#theme-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.6em;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s;
    padding: 4px 8px;
}

#theme-toggle:hover {
    transform: rotate(20deg);
    background: rgba(255,255,255,0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #3498db;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.subtitle {
    font-size: 1.1em;
    font-style: italic;
    color: #dcdcdc;
}

main {
    padding: 40px 25px;
    max-width: 950px;
    margin: auto;
}

section {
    margin-bottom: 60px;
}

h2 {
    color: #2c3e50;
    border-left: 5px solid #3498db;
    padding-left: 12px;
    margin-bottom: 20px;
}

.project {
    background: #ffffff;
    border-left: 5px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.3s;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.9em;
    border-top: 4px solid #3498db;
}

/* 🌙 --- Mode Gelap Profesional --- */
body.dark-mode {
    background: linear-gradient(180deg, #0e0e0e 0%, #1b1b1b 100%);
    color: #e0e0e0;
}

body.dark-mode header {
    background: linear-gradient(135deg, #111, #222);
    border-bottom-color: #555;
}

body.dark-mode footer {
    background: linear-gradient(135deg, #111, #222);
    border-top-color: #555;
}

body.dark-mode .project {
    background: #181818;
    border-left-color: #888;
}

body.dark-mode h2 {
    color: #f0f0f0;
}

body.dark-mode .btn {
    background: #555;
}

body.dark-mode .btn:hover {
    background: #777;
}

/* Responsif */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    header h1 {
        font-size: 1.5em;
    }
    .subtitle {
        font-size: 1em;
    }
}

.edu-card, .cert-card {
    background: #ffffff;
    border-left: 5px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.3s;
}

.edu-card:hover, .cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.edu-card h3, .cert-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.edu-card p, .cert-card p {
    margin: 6px 0;
}

/* --- Mode Gelap untuk tambahan baru --- */
body.dark-mode .edu-card,
body.dark-mode .cert-card {
    background: #181818;
    border-left-color: #888;
}

body.dark-mode .edu-card h3,
body.dark-mode .cert-card h3 {
    color: #f0f0f0;
}
