/* ==========================================
   1. RESET & GAYA DASAR (GLOBAL STYLES)
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Tombol Global */
.btn {
    display: inline-block;
    background: #1abc9c;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn:hover {
    background: #16a085;
}


/* ==========================================
   2. HEADER & NAVIGASI (RESPONSIVE)
   ========================================== */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    margin: auto;
    transition: all 0.3s ease;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #1abc9c;
}


/* ==========================================
   3. HALAMAN BERANDA (INDEX)
   ========================================== */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #1abc9c;
    margin-bottom: 1rem;
}

.table-profile {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table-profile td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.table-profile td:first-child {
    font-weight: bold;
    color: #2c3e50;
    width: 30%;
}


/* ==========================================
   4. HALAMAN TENTANG SAYA (ABOUT)
   ========================================== */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.about-left {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.about-left .avatar-large {
    width: 100%;
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 4px solid #1abc9c;
}

.about-right {
    flex: 2;
    min-width: 300px;
}

.bio-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #1abc9c;
    border-radius: 4px;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: #333;
    font-weight: 600;
}

/* Tata Letak Linimasa Sekolah */
.education-section {
    margin-top: 40px;
}

.timeline {
    position: relative;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #1abc9c;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    background: #1abc9c;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.timeline-item h4 {
    color: #2c3e50;
    margin-bottom: 2px;
}

.timeline-item p {
    color: #777;
    font-size: 0.95rem;
}

/* Grafik Batang Keahlian */
.skills-section {
    margin-top: 40px;
}

.skill-bar {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.bar-bg {
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    background: #1abc9c;
    height: 100%;
    border-radius: 5px;
}


/* ==========================================
   5. HALAMAN KONTAK & MEDIA SOSIAL (CONTACT)
   ========================================== */
.contact-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 4px solid #1abc9c;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Warna Atas Kartu Medsos */
.card-ig { border-top-color: #e1306c; }
.card-tt { border-top-color: #010101; }
.card-fb { border-top-color: #1877f2; }

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-link {
    display: inline-block;
    color: #fff;
    background: #1abc9c;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Tombol Warna Warni Khusus Medsos */
.btn-ig { background: #e1306c; }
.btn-tt { background: #000000; }
.btn-fb { background: #1877f2; }

.contact-card:hover .contact-link {
    filter: brightness(0.9);
}


/* ==========================================
   6. FOOTER (DASAR)
   ========================================== */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #2c3e50;
    color: white;
    margin-top: 4rem;
    font-size: 0.95rem;
}


/* ==========================================
   7. MEDIA QUERIES (RESPONSIVE HP & TABLET)
   ========================================== */

/* A. Pengaturan untuk Layar HP dan Tablet (Maksimal Lebar 768px) */
@media screen and (max-width: 768px) {
    /* HEADER RESPONSIF */
    header {
        padding: 1.2rem 0;
    }

    nav {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 0 15px;
    }

    nav .logo {
        font-size: 1.4rem;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    nav ul li {
        margin: 0 12px;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    /* KONTAINER & HERO RESPONSIF */
    .container {
        width: 92%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .hero {
        padding: 1.5rem 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    /* TABEL PROFIL DI LAYAR HP */
    .table-profile td {
        padding: 8px;
        font-size: 0.95rem;
    }

    /* FOOTER RESPONSIF */
    footer {
        margin-top: 2.5rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* B. Pengaturan khusus untuk HP Layar Kecil (Maksimal Lebar 480px) */
@media screen and (max-width: 480px) {
    /* Transformasi Tabel Menjadi Blok ke Bawah */
    .table-profile, .table-profile tbody, .table-profile tr, .table-profile td {
        display: block;
        width: 100%;
    }

    .table-profile tr {
        margin-bottom: 15px;
    }

    .table-profile td {
        border-bottom: none;
        padding: 2px 0;
    }

    .table-profile td:first-child {
        width: 100%;
        color: #1abc9c;
    }
}

/* C. Pengaturan Ekstra untuk HP Berlayar Sangat Sempit (Maksimal Lebar 360px) */
@media screen and (max-width: 360px) {
    nav ul li {
        margin: 0 8px;
    }
    nav ul li a {
        font-size: 0.85rem;
    }
}