/* ==========================================================================
   1. IMPORT GOOGLE FONTS & GLOBAL RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,600&family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #FFF3F8; /* Pink pastel super soft */
    color: #3C3C3C;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER & NAVIGATION BAR
   ========================================================================== */
header {
    background-color: transparent;
    padding: 25px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2D2D2D;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #E75480;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    background-color: rgba(255, 255, 255, 0.5); 
    padding: 10px 25px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

nav ul li a {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #E75480;
    font-weight: 600;
}

.instagram-icon {
    color: #E75480;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.instagram-icon:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   3. HERO SECTION (INDEX / HOME)
   ========================================================================== */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 10% 80px 10%;
    min-height: 75vh;
}

.hero-text {
    max-width: 52%;
}

.hero-subtitle {
    color: #E75480;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.hero-text h1 {
    font-size: 54px;
    font-weight: 800;
    color: #2D2D2D;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #E75480;
}

.pretty-ampersand {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #E75480;
    font-size: 62px;
    line-height: 0;
    display: inline-block;
    margin: 0 4px;
    vertical-align: -5px;
}

.badge {
    display: inline-block;
    background-color: #FFB6C1;
    color: #FFFFFF;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.3);
}

.hero-description {
    font-size: 15px;
    color: #666666;
    margin-bottom: 35px;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #FF69B4;
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.btn-primary:hover {
    background-color: #E75480;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #FF69B4;
    border: 1px solid rgba(255, 105, 180, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background-color: #FFF5F7;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #FFFFFF;
    box-shadow: 0 10px 30px rgba(231, 84, 128, 0.15);
}

/* ==========================================================================
   4. ABOUT SECTION
   ========================================================================== */
.about-container {
    padding: 60px 10%;
}

.section-tag {
    color: #FF69B4;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.about-content h2 {
    font-size: 34px;
    color: #2D2D2D;
    font-weight: 700;
}

.about-layout {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    align-items: center;
}

.about-media {
    flex: 1;
    max-width: 320px;
}

.code-box-img {
    width: 100%;
    border-radius: 20px;
    border: 6px solid #FFFFFF;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.about-text-wrapper {
    flex: 2;
}

.about-p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    text-align: justify;
}

.code-card {
    background-color: #FFFFFF;
    border-left: 4px solid #FF69B4;
    border-radius: 8px;
    padding: 22px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(231, 84, 128, 0.04);
}

.code-comment {
    color: #FFB6C1;
    font-style: italic;
}

.code-keyword {
    color: #D2691E;
    font-weight: bold;
}

.code-method {
    color: #8A2BE2;
}

/* ==========================================================================
   5. EDUCATION TIMELINE
   ========================================================================== */
.education-container {
    padding: 60px 10%;
}

.timeline {
    position: relative;
    max-width: 750px;
    margin: 45px 0 0 15px;
    border-left: 2px solid #FFB6C1;
}

.timeline-item {
    position: relative;
    padding-left: 35px;
    margin-bottom: 45px;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 4px;
    width: 18px;
    height: 18px;
    background-color: #FFF3F8;
    border: 4px solid #FF69B4;
    border-radius: 50%;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    color: #E75480;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 14px;
    color: #666666;
}

/* ==========================================================================
   6. CARDS GRID FRAMEWORK (PROJEK & SERTIFIKAT)
   ========================================================================== */
.grid-title-container {
    text-align: center;
    padding: 60px 10% 10px 10%;
}

.grid-title-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.grid-title {
    font-size: 30px;
    color: #2D2D2D;
    font-weight: 700;
}

.grid-subtitle {
    font-size: 14px;
    color: #777777;
    margin-top: 4px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    padding: 40px 10% 80px 10%;
}

.card-item {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(231, 84, 128, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(231, 84, 128, 0.08);
}

.card-image-holder {
    background-color: #FFF9FC;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #FFF0F5;
    height: 210px;
}

.card-image-holder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.card-body {
    padding: 20px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    background-color: #FFF0F5;
    color: #FF69B4;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-text-title {
    font-size: 16px;
    font-weight: 700;
    color: #2D2D2D;
    line-height: 1.3;
}

.card-text-desc {
    font-size: 13px;
    color: #777777;
    margin-top: 6px;
    line-height: 1.5;
}

/* ==========================================================================
   7. CONTACT SECTION (BARU)
   ========================================================================== */
.contact-container {
    padding: 40px 10% 80px 10%;
}

.contact-title-section {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title-section h2 {
    font-size: 34px;
    color: #2D2D2D;
    font-weight: 700;
    margin-top: 5px;
}

.contact-subtitle {
    font-size: 14px;
    color: #777777;
    margin-top: 5px;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 950px;
    margin: 0 auto;
}

/* Panel Info Kiri */
.contact-info-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #FFFFFF;
    padding: 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(231, 84, 128, 0.03);
}

.info-icon {
    font-size: 24px;
    background-color: #FFF0F5;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-details h3 {
    font-size: 15px;
    color: #2D2D2D;
    font-weight: 700;
}

.info-details p {
    font-size: 13px;
    color: #666666;
    margin-top: 2px;
}

/* Panel Form Kanan */
.contact-form-panel {
    flex: 1.5;
    background: #FFFFFF;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(231, 84, 128, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555555;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #FFE4E1;
    background-color: #FFF9FC;
    border-radius: 10px;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #FF69B4;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.btn-submit {
    align-self: flex-start;
    padding: 12px 35px;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 25px;
    font-size: 13px;
    color: #999999;
    background-color: transparent;
    border-top: 1px solid rgba(255, 182, 193, 0.2);
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        padding-top: 20px;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-buttons {
        justify-content: center;
    }
    .about-layout,
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .info-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        padding: 8px 15px;
    }
    .hero-text h1 {
        font-size: 38px;
    }
    .pretty-ampersand {
        font-size: 46px;
    }
    .hero-image {
        width: 250px;
        height: 250px;
    }
    .contact-info-panel {
        flex-direction: column;
    }
    .contact-form-panel {
        padding: 25px;
    }
}
/* ==========================================================================
   10. INSTAGRAM CONTACT CARD STYLES
   ========================================================================== */
/* Membuat kartu IG bertindak sebagai link pemanggil */
.instagram-card {
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Efek saat kursor diarahkan ke kartu Instagram */
.instagram-card:hover {
    transform: translateY(-3px);
    border-color: rgba(231, 84, 128, 0.2);
    box-shadow: 0 8px 20px rgba(231, 84, 128, 0.08);
    background-color: #FFFDFE;
}

/* Warna icon SVG khusus instagram */
.ig-icon-bg {
    color: #E75480;
    transition: all 0.3s ease;
}

.instagram-card:hover .ig-icon-bg {
    background-color: #E75480;
    color: #FFFFFF;
}

/* Pewarnaan username agar terlihat lebih hidup */
.ig-username {
    color: #E75480 !important;
    font-weight: 500;
}