/* GLOBAL RESET & BASE */
:root {
    --primary-color: #007bff; /* Biru Profesional */
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #343a40;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER/NAVIGASI */
.main-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

/* Menu ke kanan */
.main-nav {
    margin-left: auto;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Underline animation */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* CTA nav */
.nav-cta {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

.nav-cta:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
    .main-nav ul {
        gap: 16px;
    }
}

/* Logo */
.logo {
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: #111;
    font-size: 1.1rem;
    margin-right: auto;
}

.logo span {
    color: var(--primary-color);
}
.main-header ul {
    list-style: none;
    display: flex;
}
.main-header ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    display: block;
}
.main-header ul li a:hover {
    color: var(--primary-color);
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 50vh; /* Setengah tinggi viewport */
    background: #e9ecef;
    margin-bottom: 40px;
}
.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.5rem;
}
.hero-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
/* =====================================================
   CTA BUTTONS
===================================================== */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    min-width: 160px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn.primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.secondary:hover {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }
}
/* SKILLS PREVIEW */
.skills-preview {
    text-align: center;
    padding: 20px 0;
}
.skills-preview ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
}
.skills-preview li {
    background: white;
    padding: 15px;
    border-radius: 5px;
    flex: 1;
    margin: 0 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* PORTFOLIO PAGE STYLING */
.portfolio-page {
    padding: 20px 0;
}
.intro-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #555;
}
.project-container {
    display: grid;
    /* Membuat grid 2 kolom di desktop */
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
}
.project-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
}
.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}
.project-date {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 15px;
}
.tags span {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 10px;
}
.project-card h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}
.project-card ul {
    margin-left: 20px;
    padding-left: 0;
    list-style-type: disc;
}

/* MEDIA QUERY untuk responsif di ponsel */
@media (max-width: 768px) {
    .project-container {
        /* Kembali ke 1 kolom di ponsel */
        grid-template-columns: 1fr; 
    }
}
/* ABOUT PAGE STYLING */
.about-page-container {
    padding: 20px 0;
}
.about-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #e9ecef;
    border-radius: 8px;
}
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}
.about-header h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}
.about-header h2 {
    font-size: 1.2em;
    font-weight: normal;
    color: #555;
}
.about-section {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.about-section h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Value Cards Styling */
.value-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.value-cards .card {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fcfcfc;
}
.value-cards .card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 30px;
}
.cta-section h3 {
    border-bottom: none;
    color: white;
    margin-bottom: 15px;
}
.cta-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
}
.cta-section .btn.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid white;
}
/* Responsiveness */
@media (max-width: 768px) {
    .value-cards {
        flex-direction: column;
    }
}
/* FOOTER STYLING */
.main-footer {
    background: #343a40; /* Dark background */
    color: #f8f9fa; /* Light text */
    padding-top: 40px;
    margin-top: 50px;
    border-top: 5px solid var(--primary-color);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px 30px 20px;
    flex-wrap: wrap; /* Pastikan responsif */
}
.footer-section {
    flex: 1;
    min-width: 200px; /* Minimal lebar agar tidak terlalu sempit */
    margin: 15px;
}
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}
.footer-section p {
    margin-bottom: 8px;
    font-size: 0.95em;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    line-height: 1.8;
    display: block;
}
.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}
.footer-bottom {
    background: #212529;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    color: #adb5bd;
}

/* Responsiveness */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-section {
        min-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ===============================
   CONTACT FORM – PROFESSIONAL UI
================================ */
.contact-form-container {
    max-width: 520px;
    margin: 60px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form-container h2 {
    text-align: center;
    margin-bottom: 10px;
}

.contact-desc {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

/* Submit button */
.btn-submit {
    margin-top: 10px;
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    width: 100%;
}

/* Status message */
.success,
.error {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success {
    background: #e6fffa;
    color: #065f46;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Mobile */
@media (max-width: 480px) {
    .contact-form-container {
        margin: 30px 16px;
        padding: 24px;
    }
}

.portfolio-page {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.portfolio-header p {
    color: #555;
    font-size: 16px;
}

.timeline {
    display: grid;
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border-left: 5px solid #0f172a;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.project-date {
    font-size: 13px;
    color: #64748b;
    display: block;
    margin-bottom: 8px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

.project-card p {
    color: #444;
    margin-bottom: 15px;
}

.project-card ul {
    padding-left: 18px;
}

.project-card ul li {
    margin-bottom: 6px;
    color: #333;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tags span {
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}
