/* =========================
   GLOBAL
========================= */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    margin-top: 70px;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 90px 0;
}

/* =========================
   NAVBAR (GLASS + MODERN)
========================= */
.navbar {
    background: rgba(50, 48, 48, 0.7);
    backdrop-filter: blur(12px);
    transition: 0.3s;
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 20px;
    color: #facc15 !important;
}

/* NAV LINK MODERN */
.nav-link {
    position: relative;
    color: #ffffff !important;
    margin-left: 15px;
}

/* ANIMASI GARIS */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #facc15;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
}

.hero span {
    color: #facc15;
}

.hero p {
    color: #cbd5e1;
}

/* PROFILE IMAGE */
.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;

    /* INI KUNCI NYA */
    object-position: center 2%;

    border: 4px solid #facc15;
}

.profile-img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.6);
}

/* =========================
   ABOUT
========================= */
#about h2 {
    font-weight: 600;
}

#about p {
    color: #cbd5e1;
    line-height: 1.8;
}

/* SKILL BAR */
.progress {
    height: 20px;
    background-color: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #facc15, #fde68a);
}

/* =========================
   PORTFOLIO (GLASS CARD)
========================= */
.card {
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.card img {
    height: 200px;
    object-fit: cover;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.card h5 {
    font-weight: 600;
    color: #facc15;
}

.card p {
    color: #cbd5e1;
}

/* =========================
   BUTTON (MODERN)
========================= */
.btn-warning {
    background: linear-gradient(135deg, #facc15, #eab308);
    border: none;
    color: #000;
    font-weight: 500;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

.btn-outline-warning {
    border: 1px solid #facc15;
    color: #facc15;
}

.btn-outline-warning:hover {
    background: #facc15;
    color: #000;
}

/* =========================
   CONTACT
========================= */
#contact .card {
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

/* =========================
   SOCIAL
========================= */
.social a {
    color: #facc15;
    margin: 0 12px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.social a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #020617;
    padding: 20px 0;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }
}

/* BUTTON GLOBAL EFFECT */
.btn {
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.badge-custom {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #facc15;
}

/* CURSOR DOT */
.cursor {
    width: 10px;
    height: 10px;
    background: #facc15;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* CURSOR GLOW */
.cursor-blur {
    width: 120px;
    height: 120px;
    background: rgba(250, 204, 21, 0.2);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

body {
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #111;
    color: white;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(250, 204, 21, 0.2);
}

.card img {
    height: 200px;
    object-fit: cover;
}

.btn-warning {
    background: #facc15;
    border: none;
    color: black;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-warning::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    top: 0;
    left: 0;
    transition: 0.4s;
}

.btn-warning:hover::before {
    width: 100%;
}

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    color: #facc15;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 24px;
    font-weight: bold;

    z-index: 99999;

    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid #facc15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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