/* KONFIGURASI DASAR & VARIABEL WARNA (TEMA BIRU KUNING) */
:root {
    --bg-color: #0f172a;       /* Deep Navy Blue */
    --second-bg-color: #1e293b;/* Slate Blue */
    --text-color: #f8fafc;     /* White/Off-White */
    --main-color: #facc15;     /* Vibrant Yellow */
    --accent-blue: #38bdf8;    /* Light Sky Blue */
}

/* Aturan untuk Dark/Light Mode toggle opsional */
.light-theme {
    --bg-color: #f1f5f9;
    --second-bg-color: #ffffff;
    --text-color: #0f172a;
    --main-color: #eab308;
    --accent-blue: #0284c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: 0.3s ease;
}

/* NAVBAR STYLE */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 7%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--main-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--main-color);
}

.theme-toggle {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--main-color);
    padding: 5px;
}

/* REUSABLE STYLE */
section {
    min-height: 100vh;
    padding: 7rem 7% 2rem;
}

.heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.heading span {
    color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: var(--main-color);
    color: #0f172a;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: none;
}

/* HERO SECTION */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-color) 60%, var(--second-bg-color));
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--main-color);
    margin: 0 1rem 1.5rem 0;
    transition: 0.3s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: #0f172a;
    box-shadow: 0 0 10px var(--main-color);
}

.hero-img .img-box {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--second-bg-color);
    border: 5px solid var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
    overflow: hidden;
}

.hero-img .img-box .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ABOUT SECTION */
.about {
    background: var(--second-bg-color);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.info-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--main-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

/* EDUCATION (TIMELINE) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--main-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -31px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--main-color);
    box-shadow: 0 0 8px var(--main-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.3rem;
}

.timeline-content {
    background: var(--second-bg-color);
    padding: 1.5rem;
    border-radius: 8px;
}

/* EXPERIENCE SECTION */
.experience {
    background: var(--second-bg-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    text-align: left;
}

.card ul li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
    color: #cbd5e1;
}

.card ul li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* SKILLS SECTION */
.skills-container {
    max-width: 700px;
    margin: 0 auto;
}

.skill-box {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bar {
    width: 100%;
    height: 10px;
    background: var(--second-bg-color);
    border-radius: 5px;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--main-color));
    border-radius: 5px;
    width: 0; /* Diubah via JS */
    transition: 1.5s ease-in-out;
}

/* CONTACT SECTION */
.contact {
    background: var(--second-bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--main-color);
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-form textarea {
    resize: none;
}

/* FOOTER */
footer {
    background: var(--bg-color);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header { padding: 1.5rem 4%; }
    section { padding: 6rem 4% 2rem; }
    .hero { flex-direction: column-reverse; text-align: center; gap: 2rem; }
    .hero-content h1 { font-size: 3rem; }
    .social-media a { margin: 0 0.5rem 1.5rem 0.5rem; }
    nav ul { display: none; } /* Untuk penyederhanaan mobile view layout */
}