/* custom.css - SUPER GEGE FINAL (FIXED) */
:root {
    --navy: #1A2A3A;
    --orange: #F39C12;
    --green: #2ECC71;
    --light: #F8F9FA;
    --gray: #6C757D;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--navy);
    background: var(--light);
    overflow-x: hidden;
}

/* A. Hero Background Gradasi Gerak (Slow Motion) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #ffffff, #f1f3f5, #fff9f0, #ffffff);
    background-size: 400% 400%;
    animation: slowGradient 5s ease infinite;
}

@keyframes slowGradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* ========== NAVBAR SUPER GEGE (FIXED) ========== */
#mainNavbar {
    background: rgba(255, 255, 255, 0.98);
    transition: all 0.4s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Desktop: transparan di awal */
@media (min-width: 992px) {
    #mainNavbar {
        background: transparent;
        box-shadow: none;
    }
}
/* ========== LOGO CSS UNIK HURUF DSM ========== */
.logo-css {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.logo-letter {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    cursor: pointer;
}

/* Huruf D */
.logo-d {
    background: linear-gradient(135deg, #1A2A3A, #2c3e50);
    color: white;
    box-shadow: 0 4px 0 #0f1a24;
    transform: rotate(-2deg);
}

/* Huruf S */
.logo-s {
    background: linear-gradient(135deg, #F39C12, #e67e22);
    color: white;
    box-shadow: 0 4px 0 #b85e0a;
    transform: translateY(-3px) rotate(1deg);
}

/* Huruf M */
.logo-m {
    background: linear-gradient(135deg, #1A2A3A, #2c3e50);
    color: white;
    box-shadow: 0 4px 0 #0f1a24;
    transform: rotate(2deg);
}

/* Efek hover setiap huruf */
.logo-letter:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
}

.logo-d:hover {
    background: linear-gradient(135deg, #F39C12, #e67e22);
    box-shadow: 0 8px 0 #b85e0a;
}

.logo-m:hover {
    background: linear-gradient(135deg, #F39C12, #e67e22);
    box-shadow: 0 8px 0 #b85e0a;
}

/* Efek ketikan (typing) saat hover logo */
.logo-css:hover .logo-letter {
    animation: bounceLetter 0.5s ease;
}

@keyframes bounceLetter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo-css:hover .logo-d { animation-delay: 0s; }
.logo-css:hover .logo-s { animation-delay: 0.1s; }
.logo-css:hover .logo-m { animation-delay: 0.2s; }

/* Untuk mobile: ukuran lebih kecil */
@media (max-width: 768px) {
    .logo-css {
        font-size: 1.4rem;
        gap: 2px;
    }
    .logo-letter {
        padding: 2px 5px;
        border-radius: 8px;
    }
}

/* Efek tambahan: ada titik di bawah logo */
.logo-css::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #F39C12, #1A2A3A);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.logo-css:hover::after {
    width: 80%;
}

/* Desktop saat scroll */
#mainNavbar.navbar-scrolled {
    background: rgba(26, 42, 58, 0.98);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#mainNavbar.navbar-scrolled .navbar-brand {
    color: white !important;
}

#mainNavbar.navbar-scrolled .nav-link {
    color: white !important;
}

#mainNavbar.navbar-scrolled .nav-link:hover {
    color: var(--orange) !important;
    transform: translateX(5px);
}

/* Default style navbar brand */
.navbar-brand {
    font-weight: 800;
    color: var(--navy) !important;
    transition: color 0.3s ease;
}

/* ===== INI YANG DIPERBAIKI: Navbar Link Hover KONSISTEN di SEMUA Section ===== */
.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--navy) !important;
    position: relative;
}

.nav-link:hover {
    color: var(--orange) !important;
    transform: translateX(5px);
}

/* Hapus override yang tidak perlu */
.nav-link:focus,
.nav-link:active {
    color: var(--orange) !important;
}

/* ========== MOBILE STYLE (Glassmorphism + Tombol Close) ========== */
@media (max-width: 991px) {
    #mainNavbar {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    #mainNavbar.navbar-scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
    }
    
    #mainNavbar.navbar-scrolled .navbar-brand,
    #mainNavbar.navbar-scrolled .nav-link {
        color: var(--navy) !important;
    }
    
    #mainNavbar.navbar-scrolled .nav-link:hover {
        color: white !important;
    }
    
    /* Menu dropdown yang smooth */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        margin-top: 15px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .navbar-nav {
        gap: 8px;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-radius: 12px;
        text-align: center;
        font-weight: 600;
        color: var(--navy) !important;
    }
    
    .nav-link:hover {
        background: var(--orange);
        color: white !important;
        transform: none;
    }
    
    /* Tombol toggler custom */
    .navbar-toggler {
        border: none;
        padding: 8px 10px;
        border-radius: 12px;
        background: rgba(243,156,18,0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    /* Tombol Close (X) saat menu terbuka */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F39C12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
        background-size: 24px;
    }
    
    /* Icon hamburger normal */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23F39C12' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }
}

/* Hero Image - Ukuran lebih proporsional */
.hero-img {
    width: 100%;
    max-width: 260px;  /* Turun dari 350px → 260px */
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(243,156,18,0.2), 0 20px 40px rgba(0,0,0,0.15);
    border: 5px solid white;
    transition: box-shadow 0.3s, transform 0.3s;
}

.hero-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(243,156,18,0.3), 0 25px 50px rgba(0,0,0,0.2);
}

/* Gradasi teks keren untuk nama Anda */
.text-gradient {
    background: linear-gradient(135deg, #F39C12, #e67e22, #F39C12);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradasiGerak 3s ease infinite;
}

@keyframes gradasiGerak {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Untuk laptop sedang */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-img {
        max-width: 220px;
    }
}

/* Untuk mobile */
@media (max-width: 767px) {
    .hero-img {
        max-width: 180px;
    }
}

/* Stats */
.stats-section {
    background: white;
    padding: 60px 0;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
.stat-box {
    background: var(--light);
    padding: 20px;
    border-radius: 30px;
    transition: 0.3s;
}
.stat-box h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 0;
}
.stat-box p {
    font-weight: 600;
    margin-bottom: 0;
}

/* F. Marquee Client (Jalan Cepat) */
.marquee-section {
    background: white;
    padding: 30px 0;
    overflow: hidden;
}
.marquee-label {
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--navy);
}
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marquee-content img {
    height: 60px;
    margin: 0 30px;
    vertical-align: middle;
    transition: 0.3s;
}
.marquee-content img:hover {
    opacity: 1;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== LAYANAN & SKILL PROGRESS BAR ========== */
.services-detail-section {
    padding: 80px 0;
    background: white;
}

.service-card, .skill-card {
    background: #f8f9fa;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
}

.service-card:hover, .skill-card:hover {
    transform: translateY(-5px);
}

.service-item {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.service-item i {
    width: 30px;
    font-size: 20px;
    color: #F39C12;
}

.service-item:hover {
    background: #F39C12;
    color: white;
    transform: translateX(5px);
}

.service-item:hover i {
    color: white;
}

/* Progress Bar */
.skill-item span i {
    width: 25px;
    margin-right: 8px;
    color: #F39C12;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background: #e9ecef;
    margin-top: 6px;
}

.progress-bar {
    background: linear-gradient(90deg, #F39C12, #e67e22);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease;
}

/* Animasi progress bar saat discroll */
.progress-bar.animated {
    width: var(--target-width);
}

/* Bubble Competencies */
.services-section {
    padding: 80px 0;
}
.bubble-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}
.bubble {
    background: white;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: bold;
    color: var(--navy);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
}
.bubble:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(243,156,18,0.3);
}
.skill-detail-box {
    background: white;
    border-radius: 30px;
    padding: 30px;
    min-height: 150px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* B. Portfolio Slider Tombol Custom Bulat Bening */
.portfolio-section {
    padding: 80px 0;
    background: white;
}
.carousel-item img {
    height: 400px;
    object-fit: cover;
}
.custom-carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: 0.3s;
}
.custom-carousel-btn:hover {
    background: rgba(243,156,18,0.9);
    opacity: 1;
}
.custom-carousel-icon {
    font-size: 24px;
    color: var(--navy);
}
.custom-carousel-btn:hover .custom-carousel-icon {
    color: white;
}
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }
    .custom-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* D. Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--orange);
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--orange);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(243,156,18,0.3);
}
.timeline-content h5 {
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 5px;
}
.timeline-content p {
    margin-bottom: 0;
    color: var(--gray);
}

/* About */
.about-section {
    padding: 80px 0;
}
.about-img {
    width: 100%;
    max-width: 400px;
}

/* E. Form Kontak Efek Fokus Glows */
.contact-section {
    padding: 80px 0;
    border-radius: 40px 40px 0 0;
}
.glow-focus {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}
.glow-focus:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(243,156,18,0.25);
    outline: none;
}
.btn-primary {
    background: var(--orange);
    border: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}
.btn-outline-secondary {
    border: 2px solid var(--navy);
    color: var(--navy);
}
.btn-outline-secondary:hover {
    background: var(--navy);
    color: white;
}

/* Floating WA dengan Animasi Getar */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 999;
    animation: gentleShake 2s infinite;
}
.float-wa:hover {
    transform: scale(1.1);
    color: white;
    background: #128C7E;
    animation: none;
}
@keyframes gentleShake {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Footer dengan Garis Dinamis (Diperlambat) */
.footer {
    background: var(--navy);
    color: white;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    animation: lineMove 6s infinite; /* Diubah dari 2s jadi 6s biar santai */
}
@keyframes lineMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Tambahan: Active link highlight biar makin gege */
.nav-link.active {
    color: var(--orange) !important;
    font-weight: 800;
}

#mainNavbar.navbar-scrolled .nav-link.active {
    color: var(--orange) !important;
}