/* --- 0. Variabel Warna Dark Mode --- */
:root {
    --bg-dark: #121212; /* Latar belakang paling gelap */
    --bg-card: #1e1e1e; /* Latar belakang card/elemen */
    --text-light: #e0e0e0; /* Teks utama terang */
    --accent-color: #00bcd4; /* Warna Aksen Teal/Cyan */
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.4);
    --border-color: #333333;
}

/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
    transition: background-color 0.5s;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s;
}

a:hover {
    color: #008c9e; /* Aksen sedikit lebih gelap saat hover */
}

.section-padding {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 70px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.accent {
    color: var(--accent-color);
}

/* --- 1. Header / Navbar Sticky --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background-color: rgba(18, 18, 18, 0.95); /* Sedikit transparan untuk efek keren */
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo {
    font-size: 2em;
    font-weight: 900;
}

.nav-links a {
    color: var(--text-light);
    margin-left: 30px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- 2. Hero Section (Paling Kece) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    max-width: 55%;
}

.intro-text {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 300;
}

.headline {
    font-size: 4.5em;
    font-weight: 900;
    line-height: 1.1;
    margin: 15px 0 20px 0;
    background: linear-gradient(90deg, var(--accent-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.cta-button {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.primary {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.primary:hover {
    background-color: #008c9e;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.4);
}

.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--bg-card);
    box-shadow: var(--shadow-dark);
    transition: transform 0.8s ease-in-out;
}

.profile-photo:hover {
    transform: rotate(3deg) scale(1.05);
}

.scroll-indicator {
    text-align: center;
    margin-top: 50px;
    color: var(--secondary-color);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- 3. About Section (Grid Layout) --- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.detail-box {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.detail-box p {
    margin: 5px 0;
    font-size: 1em;
}

.fun-fact-card {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    align-self: start;
    box-shadow: var(--shadow-dark);
}

.fun-fact-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
}

/* --- 4. Stats Banner --- */
.stats-banner {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 50px 5%;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-item i {
    font-size: 2em;
    margin-bottom: 10px;
}

/* --- 5. Skills Section --- */
.skills-section {
    background-color: var(--bg-dark);
}

.skills-category {
    margin-bottom: 50px;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-dark);
}

.skills-category h3 {
    font-size: 2em;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s;
}

.skill-tag:hover {
    transform: scale(1.05);
}

/* --- 6. Portfolio Section --- */
.portfolio-section {
    background-color: #0d0d0d;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.tech-used {
    margin: 15px 0;
}

.tech-tag {
    display: inline-block;
    background-color: #333;
    color: var(--text-light);
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 3px;
    margin-right: 5px;
}

.portfolio-footer {
    text-align: center;
    margin-top: 50px;
}

/* --- 7. Experience (Timeline) --- */
.experience-section {
    background-color: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 0 30px 40px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--bg-dark);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    left: -7px;
    top: 15px;
    z-index: 1;
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-dark);
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content .date {
    display: block;
    color: #999;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.timeline-content ul {
    list-style-type: none;
    padding-left: 0;
}

.timeline-content ul li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- 8. Testimonials Section --- */
.testimonials-section {
    background-color: #0d0d0d;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--accent-color);
    box-shadow: var(--shadow-dark);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    color: var(--accent-color);
    font-weight: 700;
}

/* --- 9. Contact Section (Form) --- */
.contact-section {
    text-align: center;
    padding: 100px 5%;
    background-color: var(--bg-dark);
}

.contact-tagline {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-light);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.submit-button {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    font-size: 2.5em;
    margin: 0 15px;
    color: var(--text-light);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* --- 10. Footer --- */
.main-footer {
    text-align: center;
    padding: 25px 0;
    background-color: #0a0a0a;
    color: #777;
    font-size: 0.9em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .headline {
        font-size: 3.5em;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
    }
    .nav-links a {
        margin: 0 10px;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        min-height: auto;
    }
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    .hero-image-container {
        order: 1;
        margin-bottom: 40px;
        width: 300px;
        height: 300px;
    }

    .headline {
        font-size: 2.5em;
    }
    .tagline {
        font-size: 1.2em;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-banner {
        flex-wrap: wrap;
    }
    .stat-item {
        flex-basis: 50%;
        margin-bottom: 30px;
    }

    .form-group {
        flex-direction: column;
    }
}