/* RESET DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #121212;
    --color-text-light: #f0f0f0;
    --color-accent: #00bcd4; /* Cyan/Biru Cerah */
    --color-secondary: #272727;
    --color-border: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY */
.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    /* Garis bawah sederhana */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.highlight {
    color: var(--color-accent);
}

/* NAVBAR */
.navbar {
    background-color: var(--color-bg-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-accent);
}

.navbar nav a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--color-accent);
}

.btn-contact {
    background-color: var(--color-accent);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--color-bg-dark) !important;
    font-weight: 600 !important;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-contact:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* SECTIONS BASE STYLING */
section {
    padding: 100px 0;
}

/* 1. HERO SECTION */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero .greeting {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--color-accent);
    font-weight: 600;
}

.hero .name {
    font-size: 4em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero .role {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 1.1em;
    max-width: 600px;
    margin-bottom: 40px;
    color: #b0b0b0;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.4);
}

/* 2. ABOUT ME SECTION */
.about-me .content-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-me .bio-text {
    flex: 2;
    font-size: 1.1em;
}

.about-me .bio-text p {
    margin-bottom: 15px;
}

.about-me .profile-pic {
    flex: 1;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 5px solid var(--color-accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.about-me .profile-pic img {
    width: 100%;
    display: block;
    border-radius: 5px;
}

.download-cv {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    border: 1px solid var(--color-accent);
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.download-cv:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
}

/* 3. SKILLS SECTION */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.skill-category {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--color-accent);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.skill-category h3 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-list {
    list-style: none;
    font-size: 1.05em;
}

.tech-list li {
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid var(--color-border);
}

.tech-list li:last-child {
    border-bottom: none;
}

/* 4. PROJECTS SECTION */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s, background-color 0.3s;
    border: 1px solid var(--color-border);
}

.project-card:hover {
    transform: scale(1.03);
    background-color: #2e2e2e;
}

.project-title {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.project-desc {
    margin-bottom: 15px;
    color: #b0b0b0;
}

.project-stack {
    font-size: 0.9em;
    margin-bottom: 20px;
}

.project-links a {
    color: var(--color-accent);
    text-decoration: none;
    margin-right: 15px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.project-links a:hover {
    opacity: 0.7;
}

/* 5. CONTACT SECTION */
.contact {
    text-align: center;
}

.contact p {
    margin-bottom: 30px;
    font-size: 1.1em;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    background-color: #1e1e1e;
    color: var(--color-text-light);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
}

.submit-btn {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.8;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    color: var(--color-accent);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff9800; /* Warna Hover berbeda */
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: var(--color-secondary);
    border-top: 1px solid var(--color-border);
}

footer p {
    font-size: 0.9em;
    color: #a0a0a0;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .navbar nav {
        margin-top: 10px;
    }

    .navbar nav a {
        margin: 0 10px;
        display: inline-block;
    }

    .hero .name {
        font-size: 3em;
    }

    .hero .role {
        font-size: 1.8em;
    }

    .about-me .content-wrapper {
        flex-direction: column;
    }

    .about-me .profile-pic {
        margin-top: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}