/* =========================================================
   REALHANME PORTFOLIO
   CLEAN / MODERN / RESPONSIVE / SMOOTH
   FINAL CSS - CLEANED & REORGANIZED
========================================================= */


/* =========================================================
   1. RESET & BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #080808;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color 0.45s ease, color 0.4s ease;
}

::selection {
    background: #ffffff;
    color: #000000;
}

img {
    display: block;
    max-width: 100%;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    font-family: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* =========================================================
   2. GLOBAL BACKGROUND
========================================================= */

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -2;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 85%);
    animation: gridMove 18s linear infinite;
    transition: opacity 0.5s ease;
}

body::after {
    z-index: -1;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.045), transparent 35%);
    transition: opacity 0.5s ease, background 0.35s ease;
}


/* =========================================================
   3. CONTAINER
========================================================= */

.container {
    width: min(calc(100% - 60px), 1440px);
    margin-inline: auto;
}


/* =========================================================
   4. HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(8, 8, 8, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: navDown 0.65s ease forwards;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background: rgba(8, 8, 8, 0.88);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navbar {
    position: relative;
    z-index: 10000;
    width: min(calc(100% - 60px), 1440px);
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}


/* =========================================================
   5. BRAND
========================================================= */

.brand {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    flex-shrink: 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 3px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.brand:hover {
    transform: translateY(-1px);
}

.audio-wave {
    position: absolute;
    left: -8px;
    top: 50%;
    width: calc(100% + 16px);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    opacity: 0.22;
    pointer-events: none;
}

.audio-wave span {
    width: 2px;
    height: 5px;
    border-radius: 20px;
    background: currentColor;
    animation: musicWave 1s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { animation-delay: 0.05s; }
.audio-wave span:nth-child(2) { animation-delay: 0.18s; }
.audio-wave span:nth-child(3) { animation-delay: 0.32s; }
.audio-wave span:nth-child(4) { animation-delay: 0.12s; }
.audio-wave span:nth-child(5) { animation-delay: 0.42s; }
.audio-wave span:nth-child(6) { animation-delay: 0.25s; }
.audio-wave span:nth-child(7) { animation-delay: 0.05s; }
.audio-wave span:nth-child(8) { animation-delay: 0.35s; }
.audio-wave span:nth-child(9) { animation-delay: 0.15s; }
.audio-wave span:nth-child(10) { animation-delay: 0.45s; }
.audio-wave span:nth-child(11) { animation-delay: 0.25s; }
.audio-wave span:nth-child(12) { animation-delay: 0.08s; }


/* =========================================================
   6. NAVIGATION
========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: #777777;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    border-radius: 10px;
    background: currentColor;
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}


/* =========================================================
   7. THEME BUTTON
========================================================= */

.theme-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #888888;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.3s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.theme-toggle:hover {
    color: #ffffff;
    background: #151515;
    border-color: #292929;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.theme-toggle i {
    display: inline-block;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.theme-toggle:hover i {
    transform: rotate(18deg) scale(1.1);
}

.theme-toggle:active i {
    transform: rotate(35deg) scale(0.88);
}


/* =========================================================
   8. MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #292929;
    border-radius: 10px;
    background: #0e0e0e;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: #444444;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 10px;
    background: #ffffff;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================================
   8B. LANGUAGE SWITCHER
========================================================= */

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid #292929;
    border-radius: 20px;
    background: transparent;
    transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.lang-toggle:hover {
    border-color: #444444;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.lang-divider {
    color: #333333;
    font-size: 12px;
    line-height: 1;
    user-select: none;
}

.lang-btn {
    padding: 2px 2px;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: #ffffff;
}


/* =========================================================
   9. MAIN
========================================================= */

main {
    position: relative;
}

main section {
    position: relative;
    scroll-margin-top: 90px;
}


/* =========================================================
   10. HERO
========================================================= */

.hero {
    min-height: 100vh;
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 80px;
}

.hero-content {
    min-width: 0;
    will-change: transform;
}

.hero-label {
    display: block;
    margin-bottom: 18px;
    color: #777777;
    font-size: 15px;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(56px, 6.8vw, 108px);
    line-height: 0.92;
    letter-spacing: -5px;
    background: linear-gradient(90deg, #ffffff, #777777, #ffffff);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: heroName 0.9s ease 0.25s forwards, gradientMove 5s ease infinite;
}

.hero h2 {
    margin-top: 30px;
    color: #aaaaaa;
    font-size: 27px;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-description {
    max-width: 650px;
    margin-top: 20px;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}


/* =========================================================
   11. HERO BUTTONS
========================================================= */

.hero-buttons {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.75s forwards;
}

.button {
    position: relative;
    overflow: hidden;
    min-height: 48px;
    padding: 13px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.primary-button {
    background: #ffffff;
    color: #000000;
}

.primary-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.13);
}

.secondary-button {
    border-color: #333333;
    background: transparent;
    color: #ffffff;
}

.secondary-button:hover {
    transform: translateY(-4px);
    background: #121212;
    border-color: #555555;
}


/* =========================================================
   12. PROFILE
========================================================= */

.profile-container {
    position: relative;
    width: min(420px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
    display: grid;
    place-items: center;
    opacity: 0;
    will-change: transform;
    animation: profileAppear 0.9s ease 0.3s forwards;
}

.profile-glow {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(55px);
    animation: profileGlow 4s ease-in-out infinite;
    transition: background-color 0.5s ease, opacity 0.5s ease;
}

.profile-ring {
    position: absolute;
    width: 94%;
    height: 94%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.profile-image {
    position: relative;
    z-index: 2;
    width: 88%;
    height: 88%;
    object-fit: cover;
    object-position: 50% 35%;
    border: 1px solid #333333;
    border-radius: 50%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.015);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   13. SECTIONS
========================================================= */

.section {
    padding: 120px 0;
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading span {
    display: block;
    margin-bottom: 10px;
    color: #777777;
    font-size: 11px;
    letter-spacing: 4px;
}

.section-heading h2 {
    color: #ffffff;
    font-size: 44px;
    line-height: 1.1;
}


/* =========================================================
   14. REVEAL
========================================================= */

/*
   PENTING:
   Section utama TIDAK diberi opacity: 0.
   Ini mencegah navigasi Home -> Project -> Contact
   terasa tertahan karena menunggu animation.
*/

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Jangan sembunyikan section utama */
main section.reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}


/* =========================================================
   15. ABOUT
========================================================= */

.about-content {
    max-width: 850px;
}

.about-content p {
    margin-bottom: 20px;
    color: #777777;
    font-size: 16px;
    line-height: 1.9;
}

.about-stats {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-stat-number {
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}

.about-stat-label {
    color: #666666;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 1.5px;
}

.about-stat-divider {
    width: 1px;
    height: 45px;
    background: #292929;
}

/* =========================================================
   ABOUT LAYOUT + TECHNOLOGY ICONS
========================================================= */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    align-items: center;
    gap: 80px;
}

.about-tech {
    width: 100%;
    padding: 28px;
    border: 1px solid #222222;
    border-radius: 16px;
    background: #101010;
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.about-tech:hover {
    border-color: #333333;
    box-shadow: 0 20px 55px rgba(255, 255, 255, 0.04);
}

.about-tech-title {
    margin-bottom: 22px;
    color: #777777;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tech-icon {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid #292929;
    border-radius: 12px;
    background: #151515;
    color: #777777;

    cursor: default;

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.tech-icon i {
    font-size: 29px;
    line-height: 1;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease;
}

.tech-icon span {
    color: #666666;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px);
    border-color: #444444;
    background: #1b1b1b;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.tech-icon:hover i {
    transform: scale(1.12);
    color: #ffffff;
}

.tech-icon:hover span {
    color: #ffffff;
}

/* =========================================================
   16. SKILLS
========================================================= */

.skills-container {
    width: min(100%, 850px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.skill-info {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    color: #aaaaaa;
    font-size: 14px;
}

.skill-bar {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 20px;
    background: #101010;
}

.skill-progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #444444, #ffffff);
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   17. PROJECTS
========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #222222;
    border-radius: 16px;
    background: #101010;
    opacity: 0;
    transform: translateY(25px);
    transform-style: preserve-3d;
    will-change: transform, border-color, box-shadow;
    --mouse-x: 50%;
    --mouse-y: 50%;
    transition: opacity 0.65s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #444444;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.06);
}

/* Glow lembut yang mengikuti posisi kursor (lihat script.js) */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.10), transparent 38%);
    transition: opacity 0.35s ease;
}

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

.project-card > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   18. PROJECT 3 CENTER
========================================================= */

.project-card:nth-child(3) {
    grid-column: 1 / -1;
    width: 50%;
    margin-inline: auto;
}

.project-number {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 3;
    color: #555555;
    font-size: 12px;
    letter-spacing: 2px;
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-number {
    color: #ffffff;
    transform: translateY(-3px);
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #252525;
    border-radius: 10px;
    background: #181818;
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.04));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Project 3 mengikuti animasi project lainnya */
.project-card:nth-child(3) .project-image img {
    object-fit: cover;
}

.project-card:nth-child(3):hover .project-image img {
    transform: scale(1.05);
}


/* =========================================================
   19. PROJECT INFO
========================================================= */

.project-info h3 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 26px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.project-card:hover .project-info h3 {
    transform: translateX(4px);
}

.project-info p {
    max-width: 700px;
    margin-bottom: 22px;
    color: #777777;
    font-size: 14px;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.project-tags span {
    position: relative;
    overflow: hidden;
    padding: 7px 11px;
    border: 1px solid #333333;
    border-radius: 50px;
    background: transparent;
    color: #999999;
    font-size: 10px;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.project-tags span::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.35s ease;
}

.project-card:hover .project-tags span {
    color: #ffffff;
    border-color: #555555;
}

.project-card:hover .project-tags span::before {
    transform: translateX(0);
}


/* =========================================================
   20. PROJECT BUTTONS
========================================================= */

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-button {
    position: relative;
    overflow: hidden;
    min-height: 42px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #151515;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.project-button:hover {
    transform: translateY(-3px);
    background: #1d1d1d;
    border-color: #666666;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-button.secondary {
    background: transparent;
}


/* =========================================================
   21. CONTACT
========================================================= */

.contact-section {
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.contact-social,
.contact-form {
    min-width: 0;
    padding: 38px;
    border: 1px solid #222222;
    border-radius: 16px;
    background: #101010;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.contact-social:hover,
.contact-form:hover {
    border-color: #333333;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.04);
}

.contact-label {
    display: block;
    margin-bottom: 10px;
    color: #777777;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
}

.contact-social h2,
.contact-form h2 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.15;
}

.contact-social > p {
    max-width: 500px;
    margin-bottom: 28px;
    color: #777777;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   22. SOCIAL LINKS
========================================================= */

.social-links {
    width: 100%;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.social-links a {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 1px solid #292929;
    border-radius: 12px;
    background: #151515;
    color: #999999;
    text-decoration: none !important;
    font-size: 34px;
    line-height: 1;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    background: #1d1d1d;
    border-color: #444444;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Tidak pakai efek shine bawaan tombol; sembunyikan pseudo-element lama */
.social-links a::before,
.social-links a::after {
    display: none !important;
}

.social-links a i {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
    transition: transform 0.3s ease, color 0.25s ease;
}

.social-links a:hover i {
    transform: scale(1.08);
}

/* Warna brand saat hover per ikon */
.social-links a:nth-child(1):hover { color: #e1306c; text-shadow: 0 0 15px #e1306c; } /* Instagram */
.social-links a:nth-child(2):hover { color: #ffffff; text-shadow: 0 0 15px #ffffff; } /* GitHub */
.social-links a:nth-child(3):hover { color: #00f2ea; text-shadow: 0 0 15px #00f2ea; } /* TikTok */
.social-links a:nth-child(4):hover { color: #25d366; text-shadow: 0 0 15px #25d366; } /* WhatsApp */
.social-links a:nth-child(5):hover { color: #5865f2; text-shadow: 0 0 15px #5865f2; } /* Discord */
.social-links a:nth-child(6):hover { color: #0a66c2; text-shadow: 0 0 15px #0a66c2; } /* LinkedIn */


/* =========================================================
   23. CONTACT FORM
========================================================= */

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

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

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

.form-group label {
    color: #888888;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #292929;
    border-radius: 8px;
    background: #0d0d0d;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555555;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #555555;
    background: #111111;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.send-message {
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    width: 100%;
    min-height: 48px;
    padding: 13px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.send-message:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.13);
}


/* =========================================================
   24. BUTTON / LINK SHINE
========================================================= */

.button::before,
.project-button::before,
.send-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.button:hover::before,
.project-button:hover::before,
.send-message:hover::before {
    left: 140%;
}


/* =========================================================
   25. BACK TO TOP
========================================================= */

#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #333333;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.9);
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-4px);
}


/* =========================================================
   26. CURSOR GLOW (posisi mengikuti mouse, lihat script.js)
========================================================= */

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 360px;
    height: 360px;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.045) 25%, rgba(255, 255, 255, 0.015) 45%, transparent 72%);
    transform: translate(-50%, -50%);
    filter: blur(12px);
    mix-blend-mode: screen;
    will-change: left, top;
}

/* =========================================================
   27. LIGHT MODE BASE
========================================================= */

body.light-mode {
    background: #f5f5f7;
    color: #171717;
}

body.light-mode::before {
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

body.light-mode::after {
    background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.035), transparent 38%);
}


/* =========================================================
   28. LIGHT MODE HEADER
========================================================= */

body.light-mode .header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.045);
}

body.light-mode .header.scrolled {
    background: rgba(255, 255, 255, 0.94);
}

body.light-mode .brand {
    color: #151515;
}

body.light-mode .nav-links a {
    color: #777777;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
    color: #111111;
}

body.light-mode .nav-links a::after {
    background: #111111;
}


/* =========================================================
   28B. LIGHT MODE LANGUAGE SWITCHER
========================================================= */

body.light-mode .lang-toggle {
    border-color: #e0e0e0;
}

body.light-mode .lang-toggle:hover {
    border-color: #d2d2d2;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

body.light-mode .lang-divider {
    color: #cccccc;
}

body.light-mode .lang-btn {
    color: #999999;
}

body.light-mode .lang-btn:hover,
body.light-mode .lang-btn.active {
    color: #111111;
}


/* =========================================================
   29. LIGHT MODE THEME
========================================================= */

body.light-mode .theme-toggle {
    background: #f2f2f2;
    border-color: #e0e0e0;
    color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .theme-toggle:hover {
    background: #e8e8e8;
    border-color: #d2d2d2;
    color: #111111;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.09);
}

body.light-mode .theme-toggle:hover i {
    transform: rotate(-18deg) scale(1.1);
}

body.light-mode .theme-toggle:active i {
    transform: rotate(-35deg) scale(0.88);
}


/* =========================================================
   30. LIGHT MODE HERO
========================================================= */

body.light-mode .hero-label {
    color: #777777;
}

body.light-mode .hero h1 {
    background: linear-gradient(90deg, #111111, #777777, #111111);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-mode .hero h2 {
    color: #555555;
}

body.light-mode .hero-description {
    color: #666666;
}


/* =========================================================
   31. LIGHT MODE BUTTONS
========================================================= */

body.light-mode .primary-button {
    background: #151515;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .primary-button:hover {
    background: #000000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .secondary-button {
    border-color: #d2d2d2;
    background: #ffffff;
    color: #222222;
}

body.light-mode .secondary-button:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}


/* =========================================================
   32. LIGHT MODE PROFILE
========================================================= */

body.light-mode .profile-glow {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .profile-ring {
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .profile-image {
    border-color: #d6d6d6;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

body.light-mode .profile-image:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   33. LIGHT MODE SECTIONS & ABOUT
========================================================= */

body.light-mode .section-heading span {
    color: #888888;
}

body.light-mode .section-heading h2 {
    color: #171717;
}

body.light-mode .about-content p {
    color: #666666;
}

body.light-mode .about-stat-number {
    color: #171717;
}

body.light-mode .about-stat-label {
    color: #777777;
}

body.light-mode .about-stat-divider {
    background: #d8d8d8;
}

/* =========================================================
   LIGHT MODE — ABOUT TECHNOLOGIES
========================================================= */

body.light-mode .about-tech {
    border-color: #dddddd;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.035);
}

body.light-mode .about-tech:hover {
    border-color: #c9c9c9;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.07);
}

body.light-mode .about-tech-title {
    color: #888888;
}

body.light-mode .tech-icon {
    border-color: #dddddd;
    background: #fafafa;
    color: #666666;
}

body.light-mode .tech-icon span {
    color: #777777;
}

body.light-mode .tech-icon:hover {
    border-color: #c4c4c4;
    background: #eeeeee;
    color: #111111;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

body.light-mode .tech-icon:hover i {
    color: #111111;
}

body.light-mode .tech-icon:hover span {
    color: #222222;
}

/* =========================================================
   34. LIGHT MODE SKILLS
========================================================= */

body.light-mode .skill-info {
    color: #555555;
}

body.light-mode .skill-bar {
    border-color: #dddddd;
    background: #e9e9e9;
}

body.light-mode .skill-progress {
    background: linear-gradient(90deg, #777777, #111111);
}


/* =========================================================
   35. LIGHT MODE PROJECTS
========================================================= */

body.light-mode .project-card {
    border-color: #dddddd;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.035);
}

body.light-mode .project-card:hover {
    border-color: #c5c5c5;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
}

body.light-mode .project-card::before {
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 0.06), transparent 38%);
}

body.light-mode .project-number {
    color: #999999;
}

body.light-mode .project-image {
    border-color: #dddddd;
    background: #eeeeee;
}

body.light-mode .project-image::after {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent 35%, transparent 65%, rgba(0, 0, 0, 0.03));
}

body.light-mode .project-info h3 {
    color: #171717;
}

body.light-mode .project-info p {
    color: #666666;
}

body.light-mode .project-tags span {
    border-color: #d7d7d7;
    background: #fafafa;
    color: #777777;
}

body.light-mode .project-card:hover .project-tags span {
    color: #222222;
    border-color: #bdbdbd;
}


/* =========================================================
   36. LIGHT MODE PROJECT BUTTONS
========================================================= */

body.light-mode .project-button {
    border-color: #d5d5d5;
    background: #f8f8f8;
    color: #333333;
}

body.light-mode .project-button:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
    color: #111111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

body.light-mode .project-button.secondary {
    background: transparent;
}


/* =========================================================
   37. LIGHT MODE CONTACT
========================================================= */

body.light-mode .send-message {
    background: #171717;
    color: #ffffff;
    border-color: #171717;
}

body.light-mode .send-message:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* LIGHT MODE — CONTACT TITLES */
body.light-mode .contact-social h2,
body.light-mode .contact-form h2 {
    color: #171717;
}

body.light-mode .contact-social,
body.light-mode .contact-form {
    border-color: #dddddd;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.035);
}

body.light-mode .contact-social:hover,
body.light-mode .contact-form:hover {
    border-color: #c9c9c9;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.07);
}

body.light-mode .contact-social > p {
    color: #666666;
}

body.light-mode .form-group label {
    color: #777777;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    border-color: #dddddd;
    background: #fafafa;
    color: #171717;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    border-color: #bdbdbd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* =========================================================
   38. LIGHT MODE SOCIAL
========================================================= */

/* LIGHT MODE — SOCIAL ICONS */
body.light-mode .social-links a {
    border: 1px solid #dddddd !important;
    background: #fafafa !important;
    color: #666666;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .social-links a:hover {
    color: #111111;
    border-color: #c4c4c4 !important;
    background: #eeeeee !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07) !important;
    transform: translateY(-5px);
}

/* =========================================================
   39. LIGHT MODE BACK TO TOP
========================================================= */

body.light-mode #back-to-top {
    border-color: #d0d0d0;
    background: rgba(255, 255, 255, 0.92);
    color: #222222;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

body.light-mode #back-to-top:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}


/* =========================================================
   40. LIGHT MODE FOOTER
========================================================= */

body.light-mode footer {
    border-top-color: #dddddd;
    color: #888888;
}


/* =========================================================
   41. LIGHT MODE CURSOR
========================================================= */

body.light-mode .cursor-glow {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.055) 0%, rgba(0, 0, 0, 0.025) 28%, transparent 70%);
    mix-blend-mode: multiply;
}

body.light-mode .custom-cursor {
    background: #111111;
    mix-blend-mode: difference;
}


/* =========================================================
   42. FOOTER
========================================================= */

footer {
    padding: 38px 20px;
    border-top: 1px solid #181818;
    text-align: center;
    color: #555555;
    font-size: 12px;
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}


/* =========================================================
   43. TABLET
========================================================= */

@media (max-width: 1000px) {

    .container,
    .navbar {
        width: min(calc(100% - 50px), 900px);
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(48px, 7vw, 75px);
    }

    .profile-container {
        width: 320px;
    }

    .nav-links {
        gap: 22px;
    }

    .project-card:nth-child(3) {
        width: 65%;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* =========================================================
   44. MOBILE
========================================================= */

@media (max-width: 700px) {

    html {
        scroll-padding-top: 75px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .navbar {
        width: calc(100% - 32px);
        min-height: 68px;
        gap: 12px;
    }


    /* ---------- MOBILE NAVIGATION ---------- */

    .menu-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 10002;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        z-index: 10001;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        border: 1px solid #292929;
        border-radius: 14px;
        background: rgba(12, 12, 12, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        width: 100%;
        min-height: 44px;
        padding: 11px 13px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #171717;
        transform: translateX(3px);
    }

    .theme-toggle {
        width: 100%;
        height: 44px;
        justify-content: flex-start;
        padding: 0 13px;
        border-radius: 8px;
        position: relative;
        z-index: 10002;
    }

    .theme-toggle:hover {
        background: #171717;
    }


    /* ---------- MOBILE LANGUAGE SWITCHER ---------- */

    .lang-toggle {
        width: 100%;
        margin-top: 2px;
        padding: 8px 13px;
        border-radius: 8px;
        justify-content: center;
        gap: 10px;
    }

    .lang-btn {
        flex: 1;
        padding: 6px 0;
        font-size: 13px;
        text-align: center;
    }


    /* ---------- MOBILE LIGHT NAV ---------- */

    body.light-mode .nav-links {
        border-color: #e5e5e5;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
    }

    body.light-mode .nav-links a {
        color: #555555;
    }

    body.light-mode .nav-links a:hover,
    body.light-mode .nav-links a.active {
        background: #f3f3f3;
        color: #111111;
    }

    body.light-mode .theme-toggle {
        background: #f5f5f5;
        border-color: #e1e1e1;
        color: #555555;
    }

    body.light-mode .theme-toggle:hover {
        background: #f3f3f3;
        color: #111111;
    }

    body.light-mode .lang-toggle {
        border-color: #e1e1e1;
        background: #f5f5f5;
    }

    body.light-mode .menu-toggle {
        background: #ffffff;
        border-color: #dedede;
    }

    body.light-mode .menu-toggle span {
        background: #222222;
    }

    body.light-mode .menu-toggle:hover {
        background: #f5f5f5;
        border-color: #cccccc;
    }


    /* ---------- MOBILE HERO ---------- */

    .hero {
        min-height: auto;
        padding: 115px 0 75px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .profile-container {
        order: -1;
        width: min(270px, 72vw);
    }

    .hero-content {
        width: 100%;
    }

    .hero-label {
        font-size: 12px;
        letter-spacing: 2.5px;
    }

    .hero h1 {
        font-size: clamp(40px, 11vw, 62px);
        line-height: 0.96;
        letter-spacing: -3px;
    }

    .hero h2 {
        margin-top: 20px;
        font-size: 19px;
    }

    .hero-description {
        max-width: 500px;
        margin-inline: auto;
        font-size: 14px;
        line-height: 1.75;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
        gap: 9px;
    }

    .button {
        flex: 1;
        min-width: 0;
        padding: 12px 15px;
    }


    /* ---------- MOBILE SECTIONS ---------- */

    main section {
        scroll-margin-top: 75px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading span {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .section-heading h2 {
        font-size: 34px;
    }


    /* ---------- MOBILE ABOUT ---------- */

    .about-content p {
        font-size: 14px;
        line-height: 1.8;
    }


    /* ---------- MOBILE PROJECTS ---------- */

    .project-card {
        padding: 18px;
        border-radius: 14px;
    }

    .project-card:hover {
        transform: translateY(-5px);
    }

    .project-card:nth-child(3) {
        grid-column: 1 / -1;
        width: 100%;
        margin-inline: 0;
    }

    .project-image {
        margin-bottom: 20px;
    }

    .project-info h3 {
        font-size: 23px;
    }

    .project-info p {
        font-size: 14px;
    }

    .project-buttons {
        gap: 8px;
    }

    .project-button {
        padding: 9px 12px;
    }


    /* ---------- MOBILE CONTACT ---------- */

    .contact-social,
    .contact-form {
        padding: 22px;
        border-radius: 14px;
    }

    .contact-social > p {
        font-size: 14px;
    }


    /* ---------- MOBILE FOOTER ---------- */

    footer {
        padding: 30px 16px;
    }


    /* ---------- MOBILE CURSOR (kursor kustom disembunyikan di perangkat sentuh) ---------- */

    .cursor-glow,
    .custom-cursor {
        display: none !important;
    }

    body.cursor-active {
        cursor: auto;
    }

    body.cursor-active a,
    body.cursor-active button {
        cursor: pointer;
    }

    .button::before,
    .project-button::before,
    .social-links a::before,
    .send-message::before,
    .project-card::before,
    .project-image::after {
        display: none;
    }
}


/* =========================================================
   45. SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .container {
        width: calc(100% - 28px);
    }

    .navbar {
        width: calc(100% - 28px);
    }

    .brand {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .hero {
        padding-top: 105px;
    }

    .profile-container {
        width: min(245px, 70vw);
    }

    .hero-buttons {
        gap: 8px;
    }

    .button {
        padding-inline: 10px;
        font-size: 12px;
    }

    .contact-social,
    .contact-form {
        padding: 18px;
    }
}


/* =========================================================
   46. VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 24px);
    }

    .navbar {
        width: calc(100% - 24px);
    }

    .brand {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .profile-container {
        width: 220px;
    }

    .hero h1 {
        font-size: 37px;
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 17px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
        flex: none;
    }

    .section-heading h2 {
        font-size: 29px;
    }

}


/* =========================================================
   47. ANIMATIONS
========================================================= */

@keyframes navDown {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes heroName {
    from { opacity: 0; transform: translateY(45px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes profileAppear {
    from { opacity: 0; transform: scale(0.75) translateY(25px); filter: blur(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes gradientMove {
    0%   { background-position: 0%; }
    50%  { background-position: 100%; }
    100% { background-position: 0%; }
}

@keyframes profileGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 0.9; }
}

@keyframes musicWave {
    0%, 100% { height: 4px;  opacity: 0.35; }
    25%      { height: 13px; opacity: 0.65; }
    50%      { height: 29px; opacity: 1; }
    75%      { height: 9px;  opacity: 0.55; }
}

@keyframes gridMove {
    0%   { background-position: 0 0, 0 0; }
    50%  { background-position: 35px 35px, 35px 35px; }
    100% { background-position: 70px 70px, 70px 70px; }
}

@keyframes loaderBrandIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

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

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

@keyframes loaderPercentIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes musicEqualizer {
    0%   { height: var(--min-height); opacity: 0.45; transform: scaleY(0.65); }
    25%  { height: var(--mid-height); opacity: 0.75; transform: scaleY(0.9); }
    50%  { height: var(--max-height); opacity: 1;    transform: scaleY(1); }
    75%  { height: var(--mid-height); opacity: 0.8;  transform: scaleY(0.8); }
    100% { height: var(--min-height); opacity: 0.5;  transform: scaleY(0.65); }
}


/* =========================================================
   48. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .loader-equalizer span {
        animation: none;
        height: 35px;
    }

    .custom-cursor {
        display: none !important;
    }

    .project-card,
    .profile-container,
    .profile-image,
    .hero-content {
        transform: none !important;
    }
}


/* =========================================================
   49. LOADING SCREEN
========================================================= */

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080808;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

/* Saat loading selesai */
#loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: min(90%, 700px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loader-brand {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 9px;
    opacity: 0;
    animation: loaderBrandIn 0.8s ease 0.1s forwards;
}

.loader-subtitle {
    margin-bottom: 42px;
    color: #666666;
    font-size: 11px;
    letter-spacing: 5px;
    opacity: 0;
    animation: loaderSubtitleIn 0.7s ease 0.35s forwards;
}

.loader-equalizer {
    width: min(100%, 620px);
    height: 145px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
    opacity: 0;
    animation: equalizerAppear 0.7s ease 0.35s forwards;
}

.loader-equalizer span {
    width: 7px;
    min-height: 6px;
    border-radius: 3px 3px 1px 1px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
    transform-origin: bottom;
    opacity: var(--opacity);
    animation: musicEqualizer var(--speed) ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

.loader-line {
    position: relative;
    width: min(100%, 620px);
    height: 1px;
    margin-top: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.loader-line span {
    display: block;
    width: 0;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    transition: width 0.1s linear;
}

.loader-percent {
    margin-top: 17px;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    animation: loaderPercentIn 0.7s ease 0.5s forwards;
}


/* ---------- LOADING SCREEN: LIGHT MODE ---------- */

body.light-mode #loading-screen {
    background: #f5f5f7;
}

body.light-mode .loader-brand,
body.light-mode .loader-percent {
    color: #111111;
}

body.light-mode .loader-equalizer span {
    background: #111111;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

body.light-mode .loader-line {
    background: rgba(0, 0, 0, 0.12);
}

body.light-mode .loader-line span {
    background: #111111;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

/* ---------- LOADING SCREEN: MOBILE ---------- */

@media (max-width: 700px) {

    .loader-content {
        width: calc(100% - 40px);
    }

    .loader-brand {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .loader-subtitle {
        margin-bottom: 32px;
        font-size: 9px;
        letter-spacing: 4px;
    }

    .loader-equalizer {
        height: 110px;
        gap: 3px;
    }

    .loader-equalizer span {
        width: 5px;
    }

    .loader-line {
        margin-top: 25px;
    }
}

/* TECHNOLOGY ICON COLORS */

.tech-icon i {
    transition: .3s ease;
}

.tech-icon:hover i {
    transform: translateY(-5px) scale(1.15);
}

/* HTML */
.tech-icon:nth-child(1):hover i {
    color: #E34F26;
    text-shadow: 0 0 15px #E34F26;
}

/* CSS */
.tech-icon:nth-child(2):hover i {
    color: #1572B6;
    text-shadow: 0 0 15px #1572B6;
}

/* JavaScript */
.tech-icon:nth-child(3):hover i {
    color: #F7DF1E;
    text-shadow: 0 0 15px #F7DF1E;
}

/* Git */
.tech-icon:nth-child(4):hover i {
    color: #F05032;
    text-shadow: 0 0 15px #F05032;
}

/* GitHub */
.tech-icon:nth-child(5):hover i {
    color: #ffffff;
    text-shadow: 0 0 15px #ffffff;
}

/* Python */
.tech-icon:nth-child(6):hover i {
    color: #3776AB;
    text-shadow: 0 0 15px #3776AB;
}

/* Linux */
.tech-icon:nth-child(7):hover i {
    color: #FCC624;
    text-shadow: 0 0 15px #FCC624;
}

/* Node.js */
.tech-icon:nth-child(8):hover i {
    color: #339933;
    text-shadow: 0 0 15px #339933;
}

/* React */
.tech-icon:nth-child(9):hover i {
    color: #61DAFB;
    text-shadow: 0 0 15px #61DAFB;
}

/* PHP */
.tech-icon:nth-child(10):hover i {
    color: #777BB4;
    text-shadow: 0 0 15px #777BB4;
}

/* MySQL */
.tech-icon:nth-child(11):hover i {
    color: #4479A1;
    text-shadow: 0 0 15px #4479A1;
}

/* VS Code */
.tech-icon:nth-child(12):hover i {
    color: #007ACC;
    text-shadow: 0 0 15px #007ACC;
}

/* =========================================================
   MOBILE FIX (≤768px)
========================================================= */

@media (max-width: 768px) {

    /* About */
    #about {
        padding-top: 80px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Skills */
    #skills {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .skills-container {
        gap: 20px;
    }

    /* Projects */
    #projects {
        padding-top: 60px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Technology icons */
    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 220px;
    }

    /* Nav links (tweak untuk lebar 701–768px) */
    .nav-links a,
    .nav-links .theme-toggle {
        width: 100%;
        height: 42px;
        box-sizing: border-box;
        margin: 0;
    }

    .nav-links .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 20px;
        border-radius: 8px;
    }

    .nav-links .theme-toggle i {
        margin: 0;
    }

    .nav-links .lang-toggle {
        width: 100%;
        height: 42px;
        box-sizing: border-box;
        margin: 0;
        justify-content: center;
    }

}

/* =========================================================
   50. SEND MESSAGE — LOADING STATE
========================================================= */

.send-message.loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.send-message .fa-spin {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* =========================================================
   END
========================================================= */