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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    list-style: none;
}

/*==========================================================================
   2. TEMA WARNA BARU (#4b79a1 -> #283e51)
==========================================================================*/
:root {
    /* Latar Belakang Dark Cyber/Velvet */
    --bg: #090c15;
    --bg2: #111827;
    --card: rgba(255, 255, 255, 0.03);
    
    /* Gradasi Background Utama (#4b79a1 -> #283e51) */
    --grad-primary: linear-gradient(135deg, #4b79a1 0%, #283e51 100%);
    --grad-hover: linear-gradient(135deg, #5a8bb8 0%, #345169 100%);
    --grad-glow: radial-gradient(circle, rgba(75, 121, 161, 0.2) 0%, rgba(0, 0, 0, 0) 70%);

    /* GRADASI AKSEN (#4b79a1 -> #283e51) */
    --gold: #4b79a1;
    --gold-light: #7cb0dc;
    --grad-gold: linear-gradient(135deg, #7cb0dc 0%, #4b79a1 50%, #283e51 100%);
    --grad-gold-hover: linear-gradient(135deg, #99c5eb 0%, #5a8bb8 50%, #345169 100%);

    /* Warna Teks & Border */
    --white: #ffffff;
    --text: #94a3b8;
    --border: rgba(75, 121, 161, 0.25); /* Border Transparan */
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    
    /* Tipografi */
    --font-main: 'Outfit', sans-serif;
    --font-title: 'Playfair Display', serif;
}

/* Elemen Dasar */
body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Effect Ambient Glow di Background */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: var(--grad-glow);
    z-index: -1;
    pointer-events: none;
}

section {
    padding: 90px 10%;
    position: relative;
}

/* Glow Dekorasi Halus di Pojok Section */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(75, 121, 161, 0.08) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

/*==========================================================================
   FONT JUDUL H2 (UKURAN DIPERKESIL AGAR PROPORSIONAL & TIDAK OVERSIZED)
==========================================================================*/
h2,
.logo,
.skills-header h2, 
.projects-header h2, 
.contact-header h2,
.experience-header h2,
.education-card h3,
.loader-text,
.about-text-content h2,
.project-body h3,
.exp-card h3 {
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Penyesuaian Ukuran Font Judul */
.home h1 {
    font-size: 42px; /* Diperkecil dari 56px */
}

h2, 
.skills-header h2, 
.projects-header h2, 
.contact-header h2, 
.experience-header h2, 
.about-text-content h2 {
    font-size: 20px; /* Diperkecil dari 30px */
}

/* Teks Aksens dengan Warna Gradasi */
.logo span,
.home p span,
.about-text-content p span,
.contact-header p,
.typing-container,
.loader-sub,
.skills-header h2 span,
.projects-header h2 span,
.experience-header h2 span {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/*==========================================================================
   STATUS BADGE (AVAILABLE FOR WORK)
==========================================================================*/
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(75, 121, 161, 0.1);
    border: 1px solid rgba(75, 121, 161, 0.3);
    border-radius: 50px;
    font-size: 12px;
    color: var(--gold-light);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/*==========================================================================
   3. PRELOADER DENGAN SPINNER
==========================================================================*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid #4b79a1;
    border-right: 3px solid #7cb0dc;
    border-radius: 50%;
    animation: spinLoader 0.9s linear infinite;
    filter: drop-shadow(0 0 15px rgba(75, 121, 161, 0.6));
}

.loader-text {
    font-size: 32px;
    color: var(--white);
    letter-spacing: 1px;
}

.loader-sub {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*==========================================================================
    4. HEADER & NAVBAR (LOGOS DIPERKECIL & NAVBAR RINGKAS)
==========================================================================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    background: transparent;
    pointer-events: none;
}

.logo, 
.navbar,
.menu-btn {
    pointer-events: auto;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    background: rgba(17, 24, 39, 0.88);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    width: fit-content;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(75, 121, 161, 0.35);
    border-radius: 100px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.navbar a {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar a:hover {
    color: var(--gold-light);
    background: rgba(75, 121, 161, 0.12);
}

.navbar a.active {
    color: var(--white);
    font-weight: 700;
    background: var(--grad-gold);
    box-shadow: 0 4px 15px rgba(75, 121, 161, 0.4);
}

.menu-btn {
    display: none;
}

/* RESPONSIVE DROPDOWN NAVBAR (POJOK KANAN ATAS) */
@media (max-width: 768px) {
    .header {
        padding: 18px 6%;
    }

    .menu-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: rgba(17, 24, 39, 0.9);
        border: 1px solid rgba(75, 121, 161, 0.35);
        border-radius: 14px;
        color: var(--white);
        font-size: 20px;
        cursor: pointer;
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        transition: all 0.3s ease;
    }

    .menu-btn:hover {
        border-color: var(--gold);
        color: var(--gold-light);
    }

    .navbar {
        position: fixed;
        top: 65px; 
        right: 5%; 
        width: auto; 
        min-width: 170px;
        height: auto; 
        
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        
        background: rgba(17, 24, 39, 0.95);
        border: 1px solid rgba(75, 121, 161, 0.35);
        border-radius: 20px;
        backdrop-filter: blur(20px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.92);
        transform-origin: top right;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .navbar a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 16px;
        border-radius: 12px;
        font-size: 14px;
    }
}

/*==========================================================================
   5. HERO / HOME SECTION
==========================================================================*/
.home {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    padding-top: 120px;
    position: relative;
}

.home-content { order: 1; }
.home-image {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.quote-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--white);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.quote-badge img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.home h1 .hi-text {
    font-style: italic;
    font-weight: 600;
    color: var(--gold-light); 
    background: none;
    -webkit-text-fill-color: initial;
    margin-right: 10px;
}

.home h1 span,
.home h1 .name-text {
    font-style: italic;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.home p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 35px;
}

mark.highlight {
    background: rgba(75, 121, 161, 0.2);
    color: var(--gold-light);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(75, 121, 161, 0.4);
}

.image-backdrop {
    position: absolute;
    width: 290px;
    height: 320px;
    background: var(--grad-gold);
    border-radius: 28px;
    transform: rotate(-4deg);
    opacity: 0.35;
    z-index: 1;
    filter: blur(15px);
}

.home-image img.main-photo {
    width: 280px;
    height: 320px;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    border: 1.5px solid rgba(75, 121, 161, 0.4); 
    box-shadow: var(--shadow);
}

.floating-icon {
    position: absolute;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(75, 121, 161, 0.4);
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(8px);
}

.floating-icon.ribbon {
    bottom: 5px;
    left: 0px;
    animation: floatAnim 4s ease-in-out infinite;
}

.floating-icon.star {
    top: 5px;
    right: 0px;
    animation: floatAnim 4s ease-in-out infinite 1.5s;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    background: var(--grad-gold);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(75, 121, 161, 0.4);
}

.btn:hover {
    background: var(--grad-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(75, 121, 161, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(75, 121, 161, 0.1);
    border-color: rgba(75, 121, 161, 0.6);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/*==========================================================================
   6. ABOUT SECTION (DESAIN EKSKLUSIF & MODERN UNTUK EXPERIENCE/EDUCATION)
==========================================================================*/
.about-card-wrapper {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(16px);
    position: relative;
    box-shadow: var(--shadow);
}

.about-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--grad-gold);
    opacity: 0.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr 310px; /* Diperlebar sedikit untuk area kartu kanan */
    gap: 32px;
    align-items: center;
}

.about-img-box {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--grad-gold);
    border-radius: 20px;
    transform: rotate(-3deg);
    opacity: 0.25;
    z-index: 1;
    filter: blur(12px);
}

.about-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
}

.about-float-icon {
    position: absolute;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 3;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.about-float-icon.top-left {
    top: -8px;
    left: -8px;
    animation: floatAboutAnim 3.8s ease-in-out infinite;
}

.about-float-icon.bottom-right {
    bottom: -8px;
    right: -8px;
    animation: floatAboutAnim 4.2s ease-in-out infinite 1s;
}

@keyframes floatAboutAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(4deg); }
}

.about-text-content h2 {
    font-size: 26px;
    margin-bottom: 14px;
}

.about-text-content p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.about-text-content p a.email-link {
    color: var(--gold-light);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-text-content p a.email-link:hover {
    color: #ffffff;
}

.about-stats {
    display: flex;
    gap: 12px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    flex: 1;
    transition: all 0.35s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(75, 121, 161, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(75, 121, 161, 0.15);
}

.stat-box h3 {
    font-size: 20px;
    font-family: var(--font-title);
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-box p {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    color: var(--text);
}

/* =========================================================
   TAMPILAN BARU EDUCATION / EXPERIENCE CARD (EKSKLUSIF)
========================================================= */
.education-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px 20px;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.education-card h3 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.education-card h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 16px;
    background: var(--grad-gold);
    border-radius: 10px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 0; /* Menghilangkan garis vertikal tua */
}

/* Mengubah tiap item menjadi Card Melayang */
.timeline-item {
    position: relative;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(75, 121, 161, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 0;
}

.timeline-item:hover {
    transform: translateX(6px) translateY(-2px);
    border-color: rgba(75, 121, 161, 0.6);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(75, 121, 161, 0.15);
}

/* Titik Indikator Glowing di Pojok Kanan Atas Kartu */
.timeline-dot {
    position: absolute;
    right: 14px;
    top: 14px;
    left: auto; /* Memindahkan dot dari kiri ke kanan */
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

.timeline-item.active .timeline-dot {
    background: #7cb0dc;
    box-shadow: 0 0 10px #4b79a1, 0 0 4px #7cb0dc;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

.timeline-content span {
    font-size: 11px;
    color: var(--text);
    display: inline-block;
}

/* Badge Tahun / Status yang Lebih Menonjol */
.timeline-content .active-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(75, 121, 161, 0.15);
    border: 1px solid rgba(75, 121, 161, 0.35);
    border-radius: 6px;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 600;
}

/*==========================================================================
   STYLING KARTU EXPERIENCE ABOUT (100% WORK & ESTETIK)
==========================================================================*/

/* Judul Kolom Experience */
.exp-column-title {
    font-family: var(--font-title, 'Playfair Display', serif);
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Container Item Kartu */
.exp-card-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(17, 24, 39, 0.7) 100%) !important;
    border: 1px solid rgba(75, 121, 161, 0.3) !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    margin-bottom: 16px !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Garis Aksen Glowing Kiri */
.exp-card-item::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 4px !important;
    background: linear-gradient(135deg, #7cb0dc 0%, #4b79a1 100%) !important;
    border-top-left-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

/* Hover Effect */
.exp-card-item:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: rgba(124, 176, 220, 0.6) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(75, 121, 161, 0.25) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(17, 24, 39, 0.9) 100%) !important;
}

.exp-card-item:hover::before {
    opacity: 1 !important;
    width: 6px !important;
}

/* Badge Tanggal (Pill-style) */
.exp-badge-date {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #7cb0dc !important;
    background: rgba(75, 121, 161, 0.18) !important;
    border: 1px solid rgba(75, 121, 161, 0.35) !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    margin-bottom: 10px !important;
}

/* Judul Posisi / Role */
.exp-role-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

/* Nama Perusahaan / Instansi */
.exp-role-title span {
    color: #4b79a1 !important;
    font-weight: 600 !important;
}

/* Teks Deskripsi */
.exp-desc {
    font-size: 12px !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
/*==========================================================================
   STYLING TOMBOL SOFT GLOW (Halus & Elegan)
==========================================================================*/

.btn-gallery-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    
    /* Warna Teks */
    color: #ffffff !important;
    
    /* Background Gradasi Biru Lembut (Tidak Terlalu Neon) */
    background: linear-gradient(135deg, #325a7e 0%, #4a8db7 100%) !important;
    
    border: none !important;
    border-radius: 50px !important;
    
    /* Bayangan Tipis Halus (Soft Glow) */
    box-shadow: 0 3px 10px rgba(74, 141, 183, 0.25) !important;
    
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Styling Ikon */
.btn-gallery-toggle i {
    font-size: 13px !important;
    color: #ffffff !important;
    transition: transform 0.3s ease !important;
}

/* Hover Effect: Tetap Halus Saat Disentuh Kursor */
.btn-gallery-toggle:hover {
    background: linear-gradient(135deg, #3b6b94 0%, #539bc8 100%) !important;
    box-shadow: 0 4px 14px rgba(74, 141, 183, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Rotasi Panah Saat Galeri Aktif */
.btn-gallery-toggle.active .arrow-icon {
    transform: rotate(180deg) !important;
}
/* ==========================================================================
   EXPERIENCE GALLERY EXTENSION
========================================================================== */

/* Tombol Dokumentasi */
.btn-gallery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  color: var(--text, #ffffff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gallery-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(75, 121, 161, 0.5);
}

.btn-gallery-toggle .arrow-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-gallery-toggle.active .arrow-icon {
  transform: rotate(180deg);
}

/* Container Galeri Foto */
.exp-gallery {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.exp-gallery.open {
  max-height: 400px; /* Batas tinggi maksimal saat terbuka */
  margin-top: 14px;
}

/* Grid Foto */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom di HP */
  }
}

.gallery-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);
}
/*==========================================================================
   7. SKILLS & TECHNOLOGIES
==========================================================================*/
.skills-header {
    text-align: center;
    margin-bottom: 40px;
}

.skills-header h2 {
    margin-bottom: 10px;
}

.skills-header p {
    color: var(--text);
    font-style: italic;
    font-size: 14px;
    margin-bottom: 20px;
}

.skills-toggle {
    display: inline-flex;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 50px;
    gap: 6px;
}

.toggle-btn {
    border: none;
    background: transparent;
    color: var(--text);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s ease;
}

.toggle-btn.active {
    background: var(--grad-gold);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(75, 121, 161, 0.4);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
}

.skill-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: rgba(75, 121, 161, 0.65);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(75, 121, 161, 0.2);
}

.skill-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.skill-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.skill-info span {
    font-size: 10px;
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
  .skills-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .skill-item {
    padding: 12px !important;
    gap: 10px !important;
  }
}
/*==========================================================================
   8. PROJECTS SECTION (DESKTOP: 4 KOLOM BERJAJAR, MOBILE: 2x2 GRID)
==========================================================================*/
.projects {
    padding: 70px 5%; 
}

.projects-container {
    max-width: 1280px; 
    margin: 0 auto;
    width: 100%;
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-header h2 {
    margin-bottom: 8px;
    color: var(--white);
}

.projects-header p {
    color: var(--text);
    font-style: italic;
    font-size: 14px;
}

/* Grid Layout Desktop: 4 Kolom Berjajar */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; 
    width: 100%;
    box-sizing: border-box;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(75, 121, 161, 0.5);
}

.project-img-box {
    width: 100%;
    height: 130px; 
    overflow: hidden;
    background: #000;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.project-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-body h3 {
    font-size: 14px; 
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.project-body p {
    font-size: 11px;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--grad-gold);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 121, 161, 0.35);
}

.btn-details:hover {
    background: var(--grad-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 121, 161, 0.5);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: #4b79a1;
    color: #7cb0dc;
    background: rgba(75, 121, 161, 0.1);
    transform: translateY(-2px);
}
/* ==========================================================================
   PERBAIKAN FOTO MODAL DETAIL PROJECT (PASTI UTUH & TIDAK TERPOTONG)
========================================================================== */

/* 1. Latar Belakang Modal Overlay */
#projectModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* 2. Gambar Modal Detail (#modalImg) */
#modalImg, 
#modalImage {
  width: 100% !important;
  height: auto !important;
  max-height: 220px !important;    /* Mencegah gambar terlalu tinggi */
  object-fit: contain !important;  /* KUNCI UTAMA: Gambar utuh 100% tanpa crop! */
  border-radius: 8px !important;
  display: block !important;
  margin: 0 auto;
}

/* 3. Pembungkus Elemen Gambar Modal (Jika Ada) */
.modal-img-box,
.project-modal-img,
#modalImg-container {
  width: 100%;
  background: #ffffff;             /* Latar putih agar UI aplikasi menyatu sempurna */
  border-radius: 12px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 4. Tag / Badges (#modalTechs) */
#modalTechs .tag,
#modalTech .tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  margin: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: #7cb0dc;
  font-weight: 600;
}
/*==============================================================================
   9. EXPERIENCE SECTION & MODAL DETAIL (DI-REDESIGN BIAR GA SEDERHANA)
==============================================================================*/
.experience {
    padding: 90px 10%;
    text-align: center;
}

.experience-header {
    margin-bottom: 35px;
}

.experience-header h2 {
    color: var(--white);
    margin-bottom: 8px;
}

.experience-header p {
    color: var(--text);
    font-style: italic;
    font-size: 14px;
}

.exp-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    margin-bottom: 35px;
}

.exp-btn {
    border: none;
    background: transparent;
    color: var(--text);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.exp-btn.active {
    background: var(--grad-gold);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(75, 121, 161, 0.4);
}

.exp-content {
    display: none; 
    max-width: 800px;
    margin: 0 auto;
}

.exp-content.active {
    display: block; 
    animation: fadeInExp 0.4s ease;
}

@keyframes fadeInExp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 30px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
}

.exp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(75, 121, 161, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(75, 121, 161, 0.15);
}

.exp-badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 16px;
    background: rgba(75, 121, 161, 0.12);
    border: 1px solid rgba(75, 121, 161, 0.35);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.exp-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.exp-card h4 {
    font-size: 16px;
    font-weight: 600;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.exp-card p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 25px;
}

.btn-detail-gold {
    padding: 11px 32px;
    background: var(--grad-gold);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(75, 121, 161, 0.4);
    transition: all 0.3s ease;
}

.btn-detail-gold:hover {
    transform: translateY(-2px);
    background: var(--grad-gold-hover);
    box-shadow: 0 12px 25px -4px rgba(75, 121, 161, 0.6);
}

/* MODAL EXPERIENCE POPUP */
.exp-modal {
    position: fixed;
    inset: 0;
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(9, 12, 21, 0.88);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.exp-modal.active {
    display: flex;
}

.exp-modal-card {
    width: 100%;
    max-width: 800px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
    animation: modalPop 0.35s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.exp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(75, 121, 161, 0.15);
}

.exp-modal-header h2 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 4px;
}

.exp-modal-subtitle {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.exp-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}

.exp-modal-close:hover {
    background: var(--grad-gold);
    color: #ffffff;
}

.exp-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}

.exp-modal-img-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.exp-modal-img-box img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.exp-modal-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.exp-modal-content ul {
    list-style: none;
    padding: 0;
}

.exp-modal-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

.exp-modal-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold-light);
    font-size: 18px;
    line-height: 1;
    top: 2px;
}

/*==========================================================================
   10. CONTACT SECTION
==========================================================================*/
.contact {
    padding: 90px 10%;
}

.contact-header {
    text-align: center;
    margin-bottom: 45px;
}

.contact-header h2 {
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--grad-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(75, 121, 161, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon.email { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.contact-icon.whatsapp { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.contact-icon.instagram { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.contact-icon.github { background: rgba(255, 255, 255, 0.15); color: var(--white); }

.contact-info {
    flex-grow: 1;
}

.contact-info span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.contact-info h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    word-break: break-all;
}

.contact-arrow {
    font-size: 16px;
    color: var(--text);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-arrow {
    transform: translateX(4px);
    color: var(--white);
}

/*==========================================================================
   11. FOOTER SECTION
==========================================================================*/
.footer {
    padding: 40px 10% 35px;
    text-align: center;
    background-color: var(--bg2);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 2px;
    background: var(--grad-gold);
}

.footer h2 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 8px;
}

.footer p {
    color: var(--text);
    font-size: 14px;
    font-style: italic;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 16px;
    transition: all 0.35s ease;
}

.footer-social a:hover {
    background: var(--grad-gold);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(75, 121, 161, 0.4);
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text);
}

/*==========================================================================
   12. MODAL PROJECT POPUP
==========================================================================*/
.modal-overlay,
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(9, 12, 21, 0.92);
    backdrop-filter: blur(14px);
    display: none; 
    justify-content: center;
    align-items: flex-start;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active,
.modal.active {
    display: flex !important;
}

.modal-card {
    background: var(--bg2);
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    max-width: 850px;
    width: 100%;
    position: relative;
    margin: auto 0;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    transition: 0.3s ease;
}

.btn-back:hover {
    background: var(--grad-gold);
    color: #ffffff;
    border-color: transparent;
}

.modal-top {
    border-bottom: 1px solid rgba(75, 121, 161, 0.15);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.modal-project-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-project-desc {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tech-section {
    margin-top: 1rem;
}

.tech-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tags span {
    background: rgba(75, 121, 161, 0.15);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(75, 121, 161, 0.3);
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.image-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 0.6rem;
    border: 1px solid var(--border);
}

.image-preview-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.btn-github {
    background: var(--grad-gold);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.btn-github:hover {
    background: var(--grad-gold-hover);
    transform: translateY(-2px);
}

/*==========================================================================
   13. TYPING EFFECT
==========================================================================*/
.typing-container {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 28px;
}

.typing-cursor {
    font-weight: 400;
    color: var(--white);
    animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/*==========================================================================
   14. RESPONSIVE MOBILE LAYOUT (2x2 GRID DILAKUKAN UNTUK PROJECTS)
==========================================================================*/

/* --- TABLET & SMALL DESKTOP (<= 1024px) --- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    
    .projects-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px;
    }

    section {
        padding: 50px 6%;
    }

    .home {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 100px;
        padding-bottom: 40px;
        text-align: center;
        gap: 20px;
    }

    .home-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-image {
        order: 1;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .home-image img.main-photo {
        width: 210px;
        height: 240px;
    }

    .image-backdrop {
        width: 220px;
        height: 250px;
    }

    .floating-icon.ribbon {
        bottom: 0px;
        left: -10px;
    }

    .floating-icon.star {
        top: 0px;
        right: -10px;
    }

    .home h1 {
        font-size: 35px;
        margin-bottom: 12px;
    }
   

    .home p {
        font-size: 13px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-btn {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about { padding-top: 20px; }
    .about-img-box { max-width: 300px; margin-bottom: 20px; }

    .project-img-box { height: 140px; }
    .project-body { padding: 14px; }

    .exp-card { padding: 25px 20px; }
    .exp-card h3 { font-size: 20px; }
    .exp-btn { padding: 8px 18px; font-size: 12px; }

    .typing-container { font-size: 16px; }
    .modal-body-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- MOBILE MEDIUM (<= 768px) --- */
@media (max-width: 768px) {
    /* MENJAGA TERUS PROJECT 2 KOLOM (2x2 GRID) DI HP */
    .projects { padding: 40px 4%; }
    
    .projects-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px; 
    }

    .project-img-box { height: 110px; }
    .project-body { padding: 10px; }
    .project-body h3 { font-size: 13px; }
    .project-body p { font-size: 10px; line-height: 1.4; margin-bottom: 10px; }
    .btn-details { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
    .btn-icon { width: 30px; height: 30px; }

    .exp-modal-body {
        grid-template-columns: 1fr;
    }

    .modal-overlay,
    .modal {
        padding: 15px 10px;
    }

    .modal-card {
        padding: 20px 16px;
        border-radius: 20px;
        max-height: 92vh;
    }

    .modal-project-title {
        font-size: 18px !important;
        margin-bottom: 10px;
    }

    .modal-project-desc {
        font-size: 13px !important;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .btn-back {
        padding: 6px 14px;
        font-size: 12px;
        margin-bottom: 15px;
    }

    .image-preview-card img {
        height: 180px;
    }
}

/* --- MOBILE SMALL (<= 600px) --- */
@media (max-width: 600px) {
    .skills-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
    }

    /* Penyesuaian ekstra untuk HP layar kecil agar grid 2x2 tetap rapi */
    .projects-grid { 
        gap: 10px; 
    }
}

/*==========================================================================
   STYLING NAMA HERO (DESKTOP & MOBILE RESPONSIVE)
==========================================================================*/

/* Teks Salam */
.hero-text .hi-text {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

/* Teks Nama "Delia Puspitasari" di Laptop/Web Desktop */
.hero-text .hero-name {
    font-family: 'Playfair Display', serif !important; /* Font serif asli kamu */
    font-size: 4.2rem !important;  /* Bikin besar & bold mengisi area kosong */
    font-weight: 700 !important;
    color: #7cb0dc !important;     /* Warna biru khas kamu */
    line-height: 1.1 !important;   /* Jarak baris rapat biar estetik */
    margin-bottom: 16px !important;
    letter-spacing: -1px !important;
}

/* Sub-title Role / Typing Effect di Bawah Nama */
.hero-text .hero-role {
    font-size: 1.2rem !important;
    color: #94a3b8 !important;
    margin-bottom: 30px !important;
}

/*==========================================================================
   PENYESUAIAN TAMPILAN MOBILE (HP < 768px)
==========================================================================*/
@media screen and (max-width: 768px) {
    .hero-text .hi-text {
        font-size: 1rem !important;
    }

    .hero-text .hero-name {
        font-size: 2.3rem !important; /* Pas & proporsional di layar HP */
        line-height: 1.2 !important;
    }

    .hero-text .hero-role {
        font-size: 1rem !important;
    }
}
/*==========================================================================
   STYLING TYPING EFFECT (Bigger & Responsive)
==========================================================================*/

/* Container Teks Typing */
.typing-container {
    display: flex !important;
    align-items: center !important;
    margin-top: 8px !important;
    margin-bottom: 24px !important;
    height: 32px !important; /* Mencegah layout meloncat saat teks dihapus */
}

/* Teks Utama Efek Mengetik */
#typing-text {
    font-size: 1.35rem !important; /* Diperbesar dari sebelumnya */
    font-weight: 600 !important;
    color: #4b79a1 !important;     /* Warna aksen biru khas kamu */
    letter-spacing: 0.5px !important;
}

/* Kursor Kedip (|) */
.typing-cursor {
    font-size: 1.35rem !important;
    font-weight: 400 !important;
    color: #4b79a1 !important;
    margin-left: 2px !important;
    animation: blinkCursor 0.8s infinite !important;
}

/* Animasi Kedip Kursor */
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/*==========================================================================
   PENYESUAIAN DI HP (MOBILE < 768px)
==========================================================================*/
@media screen and (max-width: 768px) {
    #typing-text,
    .typing-cursor {
        font-size: 1.25rem !important; /* Ukuran yang pas dan tidak terpotong di HP */
    }
    
    .typing-container {
        height: 28px !important;
        margin-bottom: 20px !important;
    }
}